Forum Moderators: phranque
I have read through many posts and also the rewrite documentation, but I am not having success. My current effort is:
Options +FollowSymLinks
RewriteEngine on
# Rewrite all requests for "/" in root directory to index.html
RewriteCond %{REQUEST_URI} ^www\.example\.com/$
RewriteRule .* %1/index.html
# Rewrite requests for /index.html in root to Merchant2/merchant.mvc
# but only if the URL doesn't already include Merchant2/merchant.mvc
RewriteCond %{REQUEST_URI} !Merchant2/merchant\.mvc
RewriteCond %{REQUEST_URI} ^www\.example\.com/index\.html$
RewriteRule ^index\.html$ %1/Merchant2/merchant\.mvc [L]
Thanks.
[edited by: jdMorgan at 4:47 am (utc) on Mar. 4, 2005]
[edit reason] Obscured specifics per TOS. [/edit]
RewriteEngine on
RewriteRule ^/($¦index.html?$) http://www.example.com/Merchant2/merchant.mvc [L,R]
(Obviously, that double/broken pipe should be a solid pipe).
[edited by: jdMorgan at 4:48 am (utc) on Mar. 4, 2005]
[edit reason] Examplified. [/edit]