Forum Moderators: phranque
to my website [abc.com...]
The two version are making a duplicate issue for the home page. There are about 20 pages of the two version that are in Google index and all of the 20 point to the home.
Please help
I have used this:
redirect 301 /index.php?cPath=26 [abc.com...]
redirect 301 /index.php?cPath=25 [abc.com...]
redirect 301 /index.php?cPath=24&page=2 [abc.com...]
but it is not working.
I am getting a 404 error on the new host when i test this solution out by going to the index.asp?pgid=7 page:
htaccess as follows:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} &?pgid=7&?
RewriteRule ^contentpage\.asp$ [d1001379.my.ozhosting.com...] [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
My questions are:
1. Do I need to have the index.asp?pgid=7 page uploaded to the new site ie do i need to upload the old site to the new hosting
2. Are there any tricks with moving from windows to linux
3. Is the htaccess code for that page totally incorrect.
Sorry to piggyback on this thread but i have tried looking through old posts and the one mentioned above is the closest
thanks in advance
john
Hi Jim
I have added this to my .htaccess file :
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} &?cPath=?&?
RewriteRule ^index\.php$ [abc.com...] [R=301,L]
Please let me know it is correct.