How would I go about removing the last two variables 4 & 5 from my final url ? Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule ^search([^/]+)-([^/]+)-([^/]+)-([^/]+)-([^/]+)\.htm?$ index.php?dvd_search_type=$1&dvd_max_results=$2&dvd_search=$3&x=$4&y=$5 [L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?dvd_search_type=([^&]+)&dvd_max_results=([^&]+)&dvd_search=([^&]+)&x=([^&]+)&y=([^\ ]+)\ HTTP/ RewriteRule ^index\.php$ http://domain.com/search%1-%2-%3-%4-%5\.htm? [R=301,L] Code (markup): ..and if possible I would also like to remove variable 2
are you referring to this? Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule ^search([^/]+)-([^/]+)\.htm?$ index.php?dvd_search_type=$1&dvd_search=$3 [L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?dvd_search_type=([^&]+)&dvd_search=([^&]+) HTTP/ RewriteRule ^index\.php$ http://domain.com/search%1-%2\.htm? [R=301,L] Code (markup):
Yeah but when the url i passed like this search-1-10-spiderman.htm the value for x and y can be determined!
I have the following working, thanks all, for your help. Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule ^search([^/]+)-([^/]+)\.htm?$ index.php?dvd_search_type=$1&dvd_search=$2&x=$3&y=$4 [L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?dvd_search_type=([^&]+)&dvd_search=([^&]+)&x=([^&]+)&y=([^&]+)\ HTTP/ RewriteRule ^index\.php$ http://domain.com/search%1-%2\.htm? [R=301,L] Code (markup):
Yeah all i can say it will work when some one search your site But when he copies which is in the form of domain.com/search-1-10-spiderman.htm and sends then your DB will be in trouble
Yeah a type=image button, but on reflection less is good so I removed it to type=submit instead, I could at a latter date assign a style to it, instead.
Oops! I know that Dude! they are basically requested using Request or Post or Get depending on the method used here I asked that what does X and Y values assigned to a variable do here Whether the starting and ending records or some other like that??
If you care to read the page (link) I provided it explains what and why x & y are generated, x & y have nothing to do with the script
Nope! I dont nderstand If i am wring i ask you friends to correct my mistake! Gapz dont misunderstood me!!! Sorry i have did anything wrong