A Digital Age Deserves A Digital Leader

mod_rewrite htaccess

mod_rewrite htaccess

Postby Thomas52 » Mon Dec 16, 2013 7:44 pm

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)
PROfessional Member
User avatar
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

Return to General Windows Support

Who is online

Users browsing this forum: No registered users and 5 guests