So, on my server I am trying to rewrite host.ca/xyz to host.ca/xyz.php and that works.
I am also trying to rewrite host.ca/quote/jkl to host.ca/quote.php?package=jkl
but that doesn't work and i have no idea as to why.
Here are my rewriting rules
- Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [L]
RewriteRule ^/quote/([a-z0-9-]*)$ /quote.php?package=$1 [L]
RewriteRule ^/clients /soon.php [L]
RewriteRule ^/([^/]+)$ /$1.php [L]
Any help is greatly appreciated.