I having some problems with my htaccess code below, it just doesn't work. Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{QUERY_STRING} dvd_search_type=(.*)&dvd_max_results=(.*)&dvd_search=(.*)&Go.x=(.*)&Go.y=(.*) RewriteRule .* search%1-%2-%3-%4-%5\.htm [R,L] RewriteRule search(.*)-(.*)-(.*)-(.*)-(.*)\.htm$ index.php?dvd_search_type=$1&dvd_max_results=$2&dvd_search=$3&Go.x=$4&Go.y=$5 PHP: The above out-puts searchtitle-50-I+Love+You+Phillip-18-10.htm?dvd_search_type=title&dvd_max_results=50&dvd_search=I+Love+You+Phillip&Go.x=18&Go.y=10 But as you can see it also contains ?dvd_search_type=title&dvd_max_results=50&dvd_search=I+Love+You+Phillip&Go.x=18&Go.y=10 Can someone point me in the right direction ?
I got it with the following Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule ^search([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ index.php?dvd_search_type=$1&dvd_max_results=$2&dvd_search=$3&Go.x=$4&Go.y=$5 [L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?dvd_search_type=([^&]+)&dvd_max_results=([^&]+)&dvd_search=([^&]+)&Go.x=([^&]+)&Go.y=([^\ ]+)\ HTTP/ RewriteRule ^index\.php$ http://domain.com/search%1/%2/%3/%4/%5? [R=301,L] Code (markup): But thanks for your time Stephan
What needs to be case insensitive it works fine as is, searches in both upper and lower case or a mix ?
Nope! Some times some url for Case Sensitive Say a Pass FrOOGLes if not equal to froogles When sharing a Link suppose some URL Retrive Data based on Case too! until you use not such system then there is no Problem Ex: Say if your using a filesharing link or some other Case Sensitive plays role there