G'day,
I've just put up a new Etomite CMS base web site to replace an earlier Macromedia Flash based based one.
Etomite uses .htaccess file rewrite rules to implement user friendly URLs.
So when I came to add in redirect 301 statements for the 6 old web pages of the previous web site, I ended up with the following:
However, when I then enter any of the old URLs (e.g. http://www.thetrust.com.au/index.html or http://www.thetrust.com.au/about.html), all I ever get is the home page as a result of an error, just as if those redirection statements weren't in the .htaccess file.Code:# # URL rewriting for Etomite CMS # Copyright AAB '04 # # To use friendly URLs for Etomite you need to uncomment the three Rewrite directives # Make sure RewriteBase points to the directory where you installed Etomite # e.g. / if your installation is in root # or /Etomite if your installation is in the Etomite subdirectory # # # You must be running on Apache with mod_rewrite to be able to use this functionality. # php_flag zlib.output_compression On php_value zlib.output_compression_level 5 Redirect 301 /index.html http://www.thetrust.com.au/home.htm Redirect 301 /about.html http://www.thetrust.com.au/about-us.htm Redirect 301 /bar.html http://www.thetrust.com.au/the-trust-bar.htm Redirect 301 /functions.html http://www.thetrust.com.au/functions.htm Redirect 301 /restaurant.html http://www.thetrust.com.au/restaurant.htm Redirect 301 /weddings.html http://www.thetrust.com.au/weddings.htm RewriteEngine On RewriteBase /~jthetrus/ RewriteCond %{REQUEST_URI} ^.*\.idx$ RewriteRule ^.*\.idx$ /404.html [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
I've tried the following paths in those redirects statements /index.html, index.html, /~jthetrus/index.html without success.
Can someone please tell me what I'm doing wrong here?
Best Regards, Lloyd.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks