 |

JamesKB
User
Feb 20, 2008, 7:58 PM
Post #1 of 4
(295 views)
Shortcut
|
|
htaccess file question
|
Can't Post
|
|
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.... -- James
|
|
|  |
 |

Dave
Staff
/ Moderator

Feb 21, 2008, 1:32 PM
Post #2 of 4
(268 views)
Shortcut
|
|
Re: [JamesKB] htaccess file question
[In reply to]
|
Can't Post
|
|
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
|
|
|  |
 |

InHouse
User
Feb 25, 2008, 10:05 AM
Post #3 of 4
(251 views)
Shortcut
|
Re: [Dave] htaccess file question
[In reply to]
|
Can't Post
|
|
Just a word to the wise for others who might follow this post as I recently did... and painted myself into a corner. Adding the following to your .htaccess file causes problems with the WYSIWYG editor:
RedirectMatch (.*)\.htm$ $1.php However, the following is okay:
RedirectMatch (.*)\.html$ $1.php I tried to get cute and put both into the .htaccess file. The three-letter extension would have to have some sort of exception when applied to the '/cmsAdmin/tinymce3/' dir. Jayme
|
|
|  |
 |

Dave
Staff
/ Moderator

Feb 25, 2008, 2:19 PM
Post #4 of 4
(246 views)
Shortcut
|
|
Re: [InHouse] htaccess file question
[In reply to]
|
Can't Post
|
|
InHouse, Thanks for the tip! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|