htaccess file question

4 posts by 3 authors in: Forums > CMS Builder
Last Post: February 25, 2008   (RSS)

What would I place in my .htaccess file to send visitors to foo.php when they try to access foo.html?
Have a nice day....

--

JamesKB

Re: [JamesKB] htaccess file question

By Dave - February 21, 2008

You'd have to experiment. Each web host provider decides how much you can change with your .htaccess files. Some allow more than others. But you might try something like this:

RedirectMatch foo.html foo.php

See the "redirect" directives here (for Apache 1.xx):
http://httpd.apache.org/docs/1.3/mod/mod_alias.html

Or here (for Apache 2.xx):
http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect

And a google search for "apache redirect" will have lots of tutorials as well:
http://www.google.com/search?q=apache+redirect

Hope that helps! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [InHouse] htaccess file question

By Dave - February 25, 2008

InHouse, Thanks for the tip!
Dave Edis - Senior Developer
interactivetools.com