Quote from: MediaGuy at Aug 05, 2008, 08:02 AM
I did experience the same problem today
... I solved it by using this syntax:
RewriteRule ^olddir/oldfile.php http://www.newsite.ext/newdir/newfile.html [L,NE,R=301]
This code worked for me. Thank you.
I’ve been searching for weeks for something like this, because I couldn’t get the Wayfinder display start tpl to work correctly so I made a sub-page (named home) that I intended to redirect to my real home page, but I could not get it working correctly until now. Thank You!
Here is my .htaccess file:
# For full documentation and other suggested options, please see
#
http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
# and especially for the first three commented out rules
#php_flag register_globals Off
#AddDefaultCharset utf-8
#php_value date.timezone Europe/Moscow
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
#RewriteRule (.*)
http://www.example.com/$1 [R=301,L]
RewriteRule ^home
http://www.themovietimeline.net [L,NE,R=301]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
# Reduce server overhead by enabling output compression if supported.
#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5