Jump to content
xisto Community

unLog!c

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. REQUIRED: Internet server (Apache 1.3.33 recomended), php, basic skills with .htaccess Mod rewrite is cool Apache option, it helps you to make your site URLs simple and clean... also it is perfect for search engines... This is mod rewrite, it replaces : site.com/index.php?include=files?ID=45with: site.com/files/45so lets get startet, open notepad, enter this in it: RewriteEngine On // - you are starting rewrite mod :)RewriteBase / // - you set the rewrite baseRewriteRule ^(.+)/([0-9]+)/?$ index.php?include=$1&ID=$2 // and rule:// ^(.+) - text ONLY// ([0-9]+) - numbers ONLY DON'T INCLUDE MY COMMENTS IN REAL HTACCESS!! RewriteEngine OnRewriteBase /RewriteRule ^(.+)/([0-9]+)/?$ index.php?include=$1&ID=$2 save it as: .htaccess and upload it to the root directory... and that's all work IMPORTANT: there is problem with browsers, browsers don't recognize that folders you tiped are not real so there is problem with images and css style, so just include apsoluthe path this is only basic, if you realy wanna do some serious work with mod rewrite visit: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html as you can see this is also static URL, but can we be shure?! btw. sorry for not so great spelling
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.