Hi all, i need help for this, I' wanna rewrite Code: http://www.site.com/index.php?tag=test+test2 to http://www.site.com/test_test2.html and this is my .htaccess : Code: Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^html/(.*)/$ index.php?REQ=$1 [L] Any help please? Many thanks
not sure 100% what you are asking for are they visiting www.site.com/test_test2.html ? if so RewriteRule ^([a-zA-Z0-9]+)_([a-zA-Z0-9]+).html$ index.php?tag=$1+$2 [L,NC] should do if they are visiting www.site.com/index.php?tag=test+test2 then i'm not sure how to do that. You would need to change the code in your application to point to the .html file instead.
Original page is : www.site.com/index.php?tag=test+test2 and i want rewrite in this way: www.site.com/test_test2.html (your code not work )
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ index.php?tag=$1 [L] You'll have to edit the script so it changes the + to _ since you have to make it also link that way.