Redirecting using .htaccess
Permalink
Hello,
I am Concrete-izing an existing html site and I wanted to redirect all .html requests to Concrete5 pages with Pretty URLs. for example:
mydomain.com/contact.html to be redirected to mydomain.com/contact
Would anyone know what the .htaccess file should look like?
This is what it contains right now.
Thanks in advance,
Hesam
I am Concrete-izing an existing html site and I wanted to redirect all .html requests to Concrete5 pages with Pretty URLs. for example:
mydomain.com/contact.html to be redirected to mydomain.com/contact
Would anyone know what the .htaccess file should look like?
This is what it contains right now.
Thanks in advance,
Hesam
//the following should work, may just need tweaking as not tested but I think its correct
RewriteRule ^([a-zA-Z-]+)\.htm(l)?$ index.php/$1 [L]