Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteMatch 301 ^view/(.*)/(.*)/.htm$ view/$1/$2\.html [L] OR Options +Indexes Options +FollowSymLinks RewriteEngine on RedirectMatch 301 (.*).htm$ $1.html It's for my site: http://luizjogos.com/ I want (for example) http://luizjogos.com/view/759/Defenda-o-Castelo.htm to go to http://luizjogos.com/view/759/Defenda-o-Castelo.html FIRST CODE: My site has a 'Internal Server Error' SECOND CODE: http://luizjogos.com/view/783/Rally-de-Portugal.htm to http://luizjogos.com/view/783/Rally-de-Portugal.html?task=view&id=783&name=Rally-de-Portugal I will love you forever if you can help I already read all the threads here in DP...but I can't figure what to do... Thanks guys!
Hello mate So the code is: Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteMatch 301 ^view/(.*)/(.*)/.htm$ view/$1/$2.html [L] If yes, I tried it now, and it's giving 'Internal Server Error', too...
Try this code in your htacess file the visitor will see *.html in the address bar of their browser. Server will return the *.htm file Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^view/(.*)/(.*)\.html$ view/$1/$2.htm [L] Code (markup): We are doing a URL Rewrite, instead of a 301 redirect here. I hope that helps..