What is the best way to improve this code for seo purposes? RewriteEngine on RewriteBase / RewriteRule (.*)/(.*)\.htm results.php?STATE=$1&CITY=$2 RewriteRule ([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+) $1.php?ID=$2&STATE=$3&CITY=$4&NAME=$5[T=application/x-httpd-cgi]
This is what I use sometimes. Allows any filename in the address bar with a html extension to be passed as a var. I like it and works well. RewriteEngine on RewriteCond %{REQUEST_FILENAME} ^[ROOTPATH]/(.+)$ [NC] RewriteCond [ROOTPATH]/%1 -f [NC] RewriteRule .* - [L] RewriteRule ^(.*).html$ infopage.php?get=$1
SEs tend to dislike directory depth. Perhaps use other symbols such as hyphens to separate items in the second rewrite rule.
The sample I posted would allow you to do something like my-product-name.html or any-words_here_like-this.html and that would load pageinfo.php?get=any-words_here_like-this
can someone look here and tell me what i am doing wrong localfinder for some reason the state links wont redirect
My original URL is My .htaccess is following: This is producing the URL as: How can I produce the following URL? Ad you can see "Go-to-3D-model-look.html" is the name of the link