I need to help re-writing a URL for my forum. The url is http://ctcorner.com/index.php?app=contactus and i need it to be http://ctcorner.com/contactus. My other urls are http://ctcorner.com/downloads or /blogs/ and this is a 3rd party app. Thnks!
I *believe* with mod_alias: Alias /contactus /path/to/index.php?app=contactus -OR- the "preferred" mod_rewrite: RewriteEngine On RewriteRule ^contactus$ index.php?app=contactus
heres my whole .htaccess were should i put it :/ <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} .*\.(jpeg|jpg|gif|png)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . /public/404.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Looks like you are routing all requests to a PHP script... Is this correct? I would add RewriteRule ^contactus$ index.php?app=contactus [L] above last set and try it.