Forum Moderators: phranque

Message Too Old, No Replies

Redirect inner pages

Redirect inner pages

         

baldlygo

10:22 am on Dec 6, 2005 (gmt 0)

10+ Year Member



Hi all,
can anyone tell me how to redirect inner pages:

for example:
I want that "http://www.mysite.com/inner01.htm" will redirect to this one - "http://www.mysite.com/inner01.htm"

Thanks ;)

Span

11:02 am on Dec 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is possible to redirect with Javascript, with a META tag, PHP, Apache's .htaccess. It all depends. If it is an important page for search engines you may need a server-side 301 Permanent. So maybe you can tell us a bit more.

And the pages in your post are the same..

baldlygo

11:50 am on Dec 6, 2005 (gmt 0)

10+ Year Member



Thanks Span,
Well, it important for se kind of page.
and I already use .htaccess for redirect for the www issue (http://mysite.com to [mysite.com)....]

I tried figure out myself, how to do it with .htaccess, but no success.

Span

11:59 am on Dec 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is one way - for in your .htacces. Everything has to be on one line and separated from your non www/www rewrite.

Redirect 301 /file.htm http://www.yoursite.com/folder/file.htm

baldlygo

12:18 pm on Dec 6, 2005 (gmt 0)

10+ Year Member



Perfect!
It took me so much time to just even post the question, and here, I've got the answer so fast..

Thank you!