Forum Moderators: phranque

Message Too Old, No Replies

Rewrite folder redirect ?

         

Northstar

2:24 pm on Sep 11, 2008 (gmt 0)

10+ Year Member



Could anyone tell me what is the correct rewite mod for redirecting from a empty folder to a html file? I have a folder that I removed the index from and now I want to redirect that to a .html file.

jdMorgan

2:27 pm on Sep 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please see our Forum Charter and the Apache mod_alias and mod_rewrite documentation.

RedirectMatch 301 ^/folder/$ http://example.com/directory/html-file.html

Jim

Northstar

3:38 pm on Sep 11, 2008 (gmt 0)

10+ Year Member



I already looked through the charter forum but the rewite mod I created didn't work. That is why I was asking to see what rewite wod worked for you guys. I'm not sure what I did wrong.

jdMorgan

3:40 pm on Sep 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did the example above help, after you modified the requested URL-path and target URL to suit your needs?

If not, please ask specific questions here.

Jim