- Code: Select all
redirect 301 /emet http://www.emetnews.org
Well, for some reason, it wasn't, I had to add additional redirects (see below). Now, I am getting errors that leave out the directory I redirected to. For instance, I had a file with the path:
- Code: Select all
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):
- Code: Select all
http://www.shamar.org/analysis/greatlie.php
The code above should be redirecting it. Below is my .htaccess file. Any ideas of what is happening?
- Code: Select all
redirect 301 /emet http://www.emetnews.org
redirect 301 /emet/analysis/ http://www.emetnews.org/analysis/
redirect 301 /emet/documents/ http://www.emetnews.org/documents/
redirect 301 /emet/views/ http://www.emetnews.org/views/
RewriteEngine on
RewriteRule ^current\.php$ http://www.emetnews.org/current.php
RewriteRule ^current\.htm$ http://www.emetnews.org/current.php
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
IndexIgnore *
RewriteRule ^weblog/?(.*)$ /cgi-bin/blosxom.cgi/$1
<Files .htaccess>
order allow,deny
deny from all
</Files>
AddHandler server-parsed .html .htm
ErrorDocument 400 /errorpage.php
ErrorDocument 401 /errorpage.php
ErrorDocument 403 /errorpage.php
ErrorDocument 404 /errorpage.php
ErrorDocument 500 /errorpage.php
<Files 403.shtml>
order allow,deny
allow from all
</Files>
<Files php.ini>
Order allow,deny
Deny from all
</Files>
# SetEnv TZ America/Miami
SetEnv TZ EST5EDT