Click to See Complete Forum and Search --> : [RESOLVED] Redirection problems after site reorganization


LeeU
12-19-2006, 09:05 PM
I have posted this to several forums without any response, except for one forum and that didn't help. I'm hoping maybe someone here can help.

I'll try to make this as easy as I can. Up until recently, I had a Web site which used the address "http://www.shamar.org/emet/". Below that were a few directories. I recently obtained a domain name ("emetnews.org") and set it up as an addon domain which pointed to that directory. I also set up a redirection in the .htaccess file for "shamar.org". I had thought that I could just put the following in the file and that would be enough:

redirect 301 /emet http://www.emetnews.org

Well, for some reason, it wasn't and I have had to change it several times. Now, I have a few problems.

1. I am getting errors that leave out the directory I redirected to. For instance, before the change I had a file with the path: "http://www.shamar.org/emet/analysis/greatlie.php". Now, for some reason, I am getting errors that point to non-existent files at (and all the other sub-directories under "/emet"): "http://www.shamar.org/analysis/greatlie.php". It leaves out the "/emet" portion of the URL and doesn't redirect to to http://www.emetnews.org

2. I have changed a few things in the .htaccess file and now it seems that most redirect except "http://www.shamar.org/emet/index.htm" (The problem above still remains though). This is a major problem as there are many sites that link to this. (I haven't been able to contact all of them.)

Below is my .htaccess file (I left out non-pertinent items). Any ideas of what is happening?

Thanks,

Options +FollowSymLinks
RewriteEngine on

RedirectMatch 301 /emet/?(.*)$ http://www.emetnews.org/$1

redirect 301 /emet/index.htm http://www.emetnews.org/index.php

RewriteRule ^current\.php$ http://www.emetnews.org/current.php
RewriteRule ^current\.htm$ http://www.emetnews.org/current.php
RewriteRule ^weblog/?(.*)$ /cgi-bin/blosxom.cgi/$1

RewriteBase /
RewriteRule ^(.*)\.htm$ $1 [C,E=WasHTML:yes]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [S=1,R]
RewriteCond %{ENV:WasHTML} ^yes$
RewriteRule ^(.*)$ $1.htm

AddType text/html .html .htm

AddHandler server-parsed .html .htm

LeeU
12-19-2006, 09:56 PM
Nevermind, I got it. It was a problem with the .htaccess file in the new domain.