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

Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
301 redirect of directories like pages
301 redirect of directory like pages
black




msg:738682
 11:49 am on Nov 13, 2005 (gmt 0)

Hi,
on my website I use modrewrite and I've some directories (mod-rewritted) like
sitename.ext/dir1/
the problem is that
sitename.ext/dir1 (without the trailing slash) is the same content (because the rules match to the same file)

I've hundreds of these, do you suggest to put a 301 redirect from sitename.ext/dir1 to sitename.ext/dir1/?
Is it dangerous to put so many redirects?

Thanks

 

Brett_Tabke




msg:738683
 5:04 pm on Nov 26, 2005 (gmt 0)

I don't think it would be a huge issue, because the dupe penalty is only on the 2nd page found. Both pages reside on your site - so what?

AlexK




msg:738684
 5:53 pm on Nov 26, 2005 (gmt 0)

(The default) Apache .conf file will auto-cause redirects of
mysite.tld/dir to mysite.tld/dir/, anyway.

I disagree with Brett. All programming (which is what redirects are) needs to be as clean as possible, else you store up future problems.

If you need any help with the redirects, ask at Apache Web Server [webmasterworld.com] - the assistance there is awesome.

wanna_learn




msg:738685
 8:34 am on Nov 28, 2005 (gmt 0)

Hi following the advice of this Board I had been trying to kill the non-www version of my site and the crawling of IP/page.htm ... I had been trying to do .htaccess thing but not sure if this is right way
1) I created a text file with code like
RewriteCond %{HTTP_HOST} ^pubcon
RewriteRule ^(.+) [pubcon.com...] [L,R=301]

RewriteCond %{HTTP_HOST} ^123.123.123.123
RewriteRule ^(.+) [pubcon.com...] [L,R=301]

2) Uploaded the File in my public_html Directory

It does not seem to be working, can somebody help?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
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