Page is a not externally linkable
lucy24 - 7:36 am on Jan 19, 2013 (gmt 0)
Problem: Dynamic query strings to static URL not working.
That's ::cough-cough:: not the only problem. But I don't see anything in the quoted snippet of htaccess that even tries to change the query-string version of the URL to the non-query-string version. So you can hardly blame it for not working. You haven't told it to work :)
Oh, and I'm going to paraphrase an answer I recently gave in another thread, only this time it will be more obvious.
RewriteCond %{REQUEST_URI} index.php
RewriteRule .* http://www.example.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,NC,L]
RewriteCond %{SCRIPT_FILENAME}/ -d
RewriteCond %{SCRIPT_FILENAME}.php !-f
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.+)\.php$ /$1 [R=301,L]
RewriteCond %{SCRIPT_FILENAME}.php -f
RewriteRule [^/]$ %{REQUEST_URI}.php [QSA,L]
I changed one tiny thing. Do you see why?