Forum Moderators: phranque
I have an index page that gets variables passed along from the URL.
example.com/folder/index.php?c=dz
Since its the index page I can shorten that to:
example.com/folder/?c=dz
I was told that I could use mod_rewrite to make it even shorter, to something like:
example.com/folder/dz
I've looked online for some information on mod_rewrite, and came up with a solution like this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule /folder//(.*)/(.*)/$ /folder/?$1=$2
Would I add this to my .htaccess file? Does the script have any problems with it, or are their any caveats I should watch out for? Is this URL shorting idea even advisable?
Thanks