Welcome to WebmasterWorld Guest from

Message Too Old, No Replies

301 redirect of directories like pages

301 redirect of directory like pages



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

10+ Year Member

on my website I use modrewrite and I've some directories (mod-rewritted) like
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?



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

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

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?


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

WebmasterWorld Senior Member 10+ Year Member

(The default) Apache .conf file will auto-cause redirects of
, 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.


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

10+ Year Member

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} ^
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?


Featured Threads

Hot Threads This Week

Hot Threads This Month