J
J.D. Landscaping
- Original Poster
- #1
Hi, Could somebody take a look at this hta access file text i have pasted below and show me how to redirect my old serps listings to my new pages, or tell me if it would be easier to use the old page " titles " on the new pages....
I have a basic understanding of these things, but thought it best to ask, as you clever folk on here are much better at this than me.
IfModule mod_rewrite.c>
Options FollowSymLinks
RewriteEngine on
#RewriteCond %{http_host} !^yourgardenworks\.co\.uk$ [nc]
#RewriteRule ^(.*)$ http://www.yourgardenworks.co.uk/$1 [r=301,nc,L]
RewriteRule ^blank\.txt - [L]
RewriteCond %{HTTP_USER_AGENT} (MSIECrawler|Ninja|Microsoft|MSFront|WebCopier|Pockey) [NC]
RewriteRule ^(.*)$ blank.txt [L]
RewriteRule ^(.*)index.php$ http://%{HTTP_HOST}/$1 [R=301,NS,L]
RewriteRule ^(.*)index.html$ http://%{HTTP_HOST}/$1 [R=301,NS,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>
ErrorDocument 404 /notfound.php
Cheers
JD
I have a basic understanding of these things, but thought it best to ask, as you clever folk on here are much better at this than me.
IfModule mod_rewrite.c>
Options FollowSymLinks
RewriteEngine on
#RewriteCond %{http_host} !^yourgardenworks\.co\.uk$ [nc]
#RewriteRule ^(.*)$ http://www.yourgardenworks.co.uk/$1 [r=301,nc,L]
RewriteRule ^blank\.txt - [L]
RewriteCond %{HTTP_USER_AGENT} (MSIECrawler|Ninja|Microsoft|MSFront|WebCopier|Pockey) [NC]
RewriteRule ^(.*)$ blank.txt [L]
RewriteRule ^(.*)index.php$ http://%{HTTP_HOST}/$1 [R=301,NS,L]
RewriteRule ^(.*)index.html$ http://%{HTTP_HOST}/$1 [R=301,NS,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>
ErrorDocument 404 /notfound.php
Cheers
JD
Last edited by a moderator: