mod_rewrite htaccess
1 post
• Page 1 of 1
mod_rewrite htaccess
I have a "test" directory for my website, and redirect all but some folders and files in my .htaccess:
Options -Indexes +SymLinksIfOwnerMatch
RewriteEngine on
RewriteBase /
RewriteCond $1 !^parked.com/
RewriteCond $1 !^piwik/
RewriteCond $1 !^wordpress/
RewriteCond $1 !^marker.htm
RewriteCond %{REQUEST_URI} !^/webtrees/
RewriteRule ^(.*)$ /webtrees/$1 [L]
All is well; all inquiries to my primary.com are redirected to primary.com/webtrees except the few folders & files excluded, BUT - BUT my parked domain @ http://www.primary.com/parked.com (http://www.parked.com) is NOW inaccessible & results in an error:
RewriteCond %{HTTP_HOST} ^www.parked.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^parked.com$
RewriteRule ^(.*)$ http://www.parked.com/$1 [R=302,L]
I've done SOMETHING wrong, but what? Any suggestions welcome.
"He either fears his fate too much, Or his desserts are small, Who dares not put it to the touch, To win or lose it all!" - James Graham, 5th Earl of Montrose (1612 to 1650)
- Thomas52
- PROfessional Member
- Posts: 136
- Joined: Sat Dec 14, 2002 5:03 am
- Location: The foothills of the beautiful Blue Ridge Mountains of Western North Carolina
- Real Name: Thomas Adkins
1 post
• Page 1 of 1
Return to General Windows Support
Who is online
Users browsing this forum: No registered users and 0 guests