homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

internal rewrite with redirection?

 2:04 pm on Jun 24, 2003 (gmt 0)

What does it mean if you internally rewrite a URL and put [R=301] at the end of it? Does it make any sense since you are not forcing an external 'http://' call so what is the meaning of a redirection in that case?

I have an old site domain that has to be redirected to a new domain name on a NEW server, but I also have the option to move the old domain to the new server and do an internal redirect.

Any ideas how this impacts SE?



 11:15 pm on Jun 24, 2003 (gmt 0)

Hopefully I'm not to far off base here?
I'm assuming the comparison you present between internal (server side-htaccess) and external (html page based) is what your looking for.

The SE's will automatically pick up on the internal/server side redirects.

Html redirects are not a good idea. Especially to SE's. There use to be a rule of thumb acceptable to SE's of 10 second dealys before the redirect. Although I tried this initally before beginning with htaccess, I don't reall the SE impact.


 2:14 am on Jun 25, 2003 (gmt 0)

i'm talking about the difference between


1. rewrite sitea.com /siteb/ [R=301]


2. rewrite sitea.com [siteb.com...] [R=301]

and even

3. redirect 301 sitea.com [siteb.com...]


 2:42 am on Jun 25, 2003 (gmt 0)


Case 1 is not "correct usage according to the book." If I get some time, I'll test it using the Server Headers checker [webmasterworld.com] and post.

Case 2 is an external rewrite, visible to search engines.

Case 3 is an external rewrite as above, but using mod_alias.

Either way you go with your two domains, it's a good idea to use a 301. Otherwise, you run the risk of problems due to duplicate content on multiple domains, and search engines getting confused as to which of the two domains gets listed or which pages get the PR.



 7:30 am on Jun 25, 2003 (gmt 0)

could i please ask a related question?

i'm having all sorts of problems with google indexing both www.mysite.com and mysite.com. i recently converted my site from static to dynamic and have used mod rewrite, i suspect that maybe i have brought this problem on myself.

is there a way of forcong a rewrite from mysite.com to www.mysite.com?

my serps have suffered a bit because of this!



 2:06 pm on Jun 25, 2003 (gmt 0)

not sure but this might require an external rewrite because you'd have to say something like rewrite *domain.com to [domain.com...]

Maybe someone else knows?


 4:43 pm on Jun 25, 2003 (gmt 0)


From a quick WebmasterWorld site search:




 9:27 pm on Jun 25, 2003 (gmt 0)

hi jim,

thank you very much, i appreciate it. it works a treat.

i didn't even try to search the site because i couldn't think of which search terms to use.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved