homepage Welcome to WebmasterWorld Guest from 184.72.69.79
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
odd redirection
odd redirection
arumilli




msg:4356690
 2:11 pm on Aug 30, 2011 (gmt 0)

Hi,

I have odd redirection problem.

When I given www.test1.com was able to forward the index page.

If I gace test1.com(exculding www) .It was redirecting some other child website.

Can you provide some pointers where I can check this please?


Regards,
Sreenivas A.

 

lucy24




msg:4356855
 9:28 pm on Aug 30, 2011 (gmt 0)

Before you do anything else: Is it your own server or are you hosted by someone else? If it isn't your server, start by asking the host. It's no use tearing your hair out over htaccess or config files when the problem is happening further up the line.

arumilli




msg:4356962
 2:56 am on Aug 31, 2011 (gmt 0)

HI,

Thanks for your suggestion. But it's our own server :(.

Need to find out the solution by owm.

Regards,
Arumilli

lucy24




msg:4356990
 5:28 am on Aug 31, 2011 (gmt 0)

Did you inherit the package from someone else? Do you actually have subdomains ("blahblah.example.com")? Is everyone under the same DNS?

You need to look from the top down. Config files, directory, htaccess. Somewhere there is a redirect saying (in English) "If the host is not exactly www.example.com, send them to myfavoritesubdomain.example.com." Obviously this is not what you want, though maybe it's what some previous version of the domain did want. Or maybe the redirect is just badly written.

What it should be doing instead is either append www. to any request that doesn't already have it, or remove www. from any request that does have it. It's your choice, but you need to specify one or the other. Make it a redirect, not a rewrite. This is to avoid the dreaded Duplicate Content problem, where search engines think www.example.com/index.html and example.com/index.html are completely different places.

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