Forum Moderators: Robert Charlton & goodroi
I found that this domain(blog with Wordpress) had a good PR on example.net/ & example.net/index.php but had a PR of 0 on example.net
So I thought that adding a redirect was the thing to do. After doing so all my Google traffic has vanished! Do you think this is temporary?
This is the code I used;
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /index.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.php? [NC]
RewriteRule ^(([^/]*/)*)index\.php?$ http://www.example.net/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^mysite\.net [NC]
RewriteRule ^(.*)$ http://www.example/$1 [R=301,L]
</IfModule>
Any suggestions would be greatly appreciated.
Thanks in advance.
[edited by: tedster at 4:43 am (utc) on Oct. 27, 2006]
[edit reason] use example.net [/edit]
I would suggest an immediate revision to this order:
RewriteEngine On
RewriteBase /
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.php? [NC]
RewriteRule ^(([^/]*/)*)index\.php?$ http://www.example.net/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^mysite\.net [NC]
RewriteRule (.*) http://www.example.net/$1 [R=301,L]
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
[edited by: jdMorgan at 5:09 am (utc) on Oct. 27, 2006]
I cant understand why Wordpress would generate htacces code for the permalinks that makes use of <IfModule mod_rewrite.c> when there is much simpler code available...
jdMorgan- thank you so much for helping me out and pointing out the difference. I really appreciate it. I've always had problems configuring apache..
I hope big G will come back soon...
Victor, just fix the code and wait a few weeks, and all should return to normal. The 'attack vector' for removing your pages was through links to your 'wrong domain' -- one of the things that the code fixes. I'm pretty sure that like most sites, yours will have far more links to the 'right domain' and that these will quickly overwhelm the incorrect ones. So, I'd expect the problem to clear up fairly quickly (in search engine indexing cycle time, at least).
Jim