Hi,

I am trying to do a simple 301 redirect because I mis-spelt a name.

The last name was written "canoz" - should have been "canuz".

This is what I have in my .htaccess file:

Quote:
Options +SymLinksifOwnerMatch
RewriteEngine On

RewriteRule ^john-canoz.simpg.net$ SimplePage - Free Web Page Creator and Hosting. [R=301,L]
RewriteRule ^simpg.net/info.php?a=john-canoz.$ SimplePage - Free Web Page Creator and Hosting. [R=301,L]


# GETTING MAIN PAGE BY URL NAME
RewriteCond %{HTTP_HOST} ^(.+).simpg.net$ [NC]
RewriteCond %{HTTP_HOST} !^www.simpg.net$ [NC]
RewriteRule ^.*$ SimplePage - Free Web Page Creator and Hosting. [NC,QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ 404.php?url=$1 [L]
As you can see, the name had a misspelling near the end of the name and as this
has quite a lot of links, I want to redirect it.

The two Rewrites at the top should catch the name before
it gets to the MAIN PAGE BY URL NAME redirect and the 404 page

But for some reason it doesn't work and I still get my 404 page.

You can try it here: my link

Does anyone know what I have done wrong ?

Thanks