Forum Moderators: phranque

Message Too Old, No Replies

Redirect script

         

stevan

11:07 pm on Dec 7, 2004 (gmt 0)

10+ Year Member



How do i make a redirect script in htacess so when some one types in my index page it will redirect to another page

THXS STEVE

ukgimp

11:09 pm on Dec 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



when i posted it was not in this forum.

Sorry

Jazeker

11:22 pm on Dec 7, 2004 (gmt 0)

10+ Year Member



Hi... have a look at an HTML tutorial where you can find that the header can contain a refresh statement that can be used as a redirector.

otherwise, use a RewriteRule in .htaccess

The Contractor

11:40 pm on Dec 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



redirect 301 / http: //www.yourdomain.com/newpage.htm

That will redirect your root index file of the site to your new page. (I intentionally broke the link by putting a space after http:, but you will need the full path to the new file)

stevan

2:17 am on Dec 8, 2004 (gmt 0)

10+ Year Member



I am soory but do not understand what you mean

I changed what you said

redirect 301 / http: //www.example.com/new.html

But after the http: do I have to put something there?

THXS Steve

[edited by: jdMorgan at 2:37 am (utc) on Dec. 8, 2004]
[edit reason] Removed specifics per TOS [/edit]

jdMorgan

2:36 am on Dec 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Stevan,

Welcome to WebmasterWorld!

Please see Apache mod_alias [httpd.apache.org] for more information.


RedirectMatch 301 ^/$ http://www.example.com/new.html

Jim