Page is a not externally linkable
puneetk - 5:37 am on Jan 19, 2013 (gmt 0)
Following is my current working .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_URI} index.php
RewriteRule .* http://www.example.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ [%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]
Problem: Dynamic query strings to static URL not working. Example:
Current URL: http://example.com/venue?popular=wedding-venues-in-chhatarpur
Note: query string is dynamic i.e. popular=value can be anything
I want this to look like: http://example.com/venue/wedding-venues-in-chhatarpur
Pl. advise the RewriteCond and RewriteRule to be applied in .htaccess file which can work. I tried but failed to get the desired result.