Htaccess for Alias


Htaccess for Alias

Postby marcelloma » Fri Mar 18, 2011 7:24 am


I have a domain on which some url are set up as alias

What I wanna do is when I go to

I would like the website to show me the file at /sites/

So far I've come up with this
Code: Select all
RewriteCond %{HTTP_HOST} ^www\.alias1\.com$
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^(.*)$ /sites/alias1/%1 [L]

But gives me Error 500 !

It works only if the last line doesn't have rewrite rules, like
Code: Select all
RewriteRule ^$ /sites/alias1/%1 [L]
how can I make it general?
Thank you!
Posts: 9
Joined: Sat Sep 12, 2009 4:14 am

Return to New Threads/Problems

Who is online

Users browsing this forum: No registered users and 3 guests