Forum Moderators: phranque

Message Too Old, No Replies

Redirect particular URLs to index page

Redirect particular URLs to index page

         

suunknown

11:59 am on Jul 25, 2006 (gmt 0)

10+ Year Member


Hi,

From Apache1.3, I have to redirect all the URLs coming from port http://mydomain.com:9001/trd/* to a index page (index.html).

I tried giving "Redirect" directive under mod_alias

Redirect /trd http://mydomain.com:9001/index.html

but it is looking for http://mydomain.com:9001/index.html/* and is not redirecting it to the file. How can I do this.

jdMorgan

2:41 pm on Jul 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In order to test the hostname and port number, you'll need to use Apache mod_rewrite, and specifically, the RewriteCond directive.

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim