Webmastersite.net
Register Log In

Re-Write For search engine

Title Re-Write For search engine
Description .htaccess not working correctly.
Message Text I have set up WSN Links to use mod_rewrite URL rewriting which works fine. What I am trying to do is to re-direct my old links program pages to the new WSN links program pages. e.g. My old page is </A>... My new page is <A href=' http://www.gardenbuildings.com/directory/Garden-B</A>... I added to the .htaccess file the following:- Redirect 301 /directory/Great-Britain <A href='http://www.gardenbuildings.com/directory/Garden-Buildings/Great-Britain-UK"' target=_blank http://www.gardenbuildings.com/directory/Garden-B[/url]... When I now click on my old URL it redirects to the new page www.gardenbuildings.com/dir...=Great-Britain<br> but with the ?action=displaycat&catname=Great-Britain at the end which is no good from a search engine point of view and it looks silly. I have tried moving the redirect either side of the .htaccess file to see if that may a difference. I have added a '/' to the end of the URL and that made no difference. The following is the .htaccess file. AddHandler server-parsed .html DirectoryIndex index.php Options +FollowSymlinks RewriteEngine on # If not working, uncomment and correctly fill the line below: RewriteBase /directory/ RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/>)$ $1/ [R] RewriteRule ^admin$ admin/index.php RewriteRule ^admin/$ admin/index.php RewriteRule ^links/([a-z]+)/([0-9]+)/?$ link.php?action=$1&id=$2 RewriteRule ^links/([0-9]+)/?$ link.php?id=$1 RewriteRule ^thread/([0-9]+)/?$ thread/$1 RewriteRule ^thread/([0-9]+)/([0-9]+)/?$ thread/$1/$2 RewriteRule ^([0-9]+)/?$ index.php?action=displaycat&catid=$1 RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?action=displaycat&catid=$1/$2 RewriteRule ^([-_/+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1 RewriteRule ^links/([-_/+A-Za-z0-9]+)-([0-9]+).html$ link.php?action=detail&id=$2 RewriteRule ^/([-_/+A-Za-z0-9]+)-([0-9]+).html$ link.php?action=detail&id=$2 Redirect 301 /directory/More-Links/Great-Britain <A href="http://www.gardenbuildings.com/directory/Misc-Resources/Great-Britain-UK" target=_blank www.gardenbuildings.com/dir...Misc-Res...]</A]... Redirect 301 /directory/Great-Britain <A href="http://www.gardenbuildings.com/directory/Garden-Buildings/Great-Britain-UK" target=_blank <A href="http://www.gardenbuildings.com/directory/Garden-B <A href="http://www.gardenbuildings.com/directory/Garden-B]http://www.gardenbuildings.com/directory/Garden-B[/url]... Can you suggest where the problem is ? Thanks in advance.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership robinantill
Views 904 views. Averaging 0 views per day.
Similar Topics
Submission Date Mar 04, 2006 - 11:22 AM