I want the domains to point to my folders like this:
main.com -> /home/user/public_html/ and
parked1.com -> /home/user/public_html/parked1/.
Now, I have set up something like this in my .htaccess file:
- Code: Select all
RewriteCond %{HTTP_HOST} parked1.com
RewriteCond %{REQUEST_URI} !^/parked1
RewriteRule ^(.*)$ parked1/$1 [L]
That is, if i type in parked1.com into my browser, the correct index page is displayed. However, if I try accessing parked1.com/fakefolder/, the same index page shows up. In fact, parked1.com/sub/another_sub/whatever/ or any other "fake" address all point to the same page as parked1.com. Which I find strange. And slightly frustrating.
But, if I type parked1.com/parked1/realfolder/, the content at /home/user/public_html/parked1/realfolder/ is loaded. See what's happened here? For some reason I need to add the parked1-bit for it to work.
I hope it's clear what my problem is, I'm sorry if this is a bit hard to read. Any advice as to what I can do to fix it?
Thank you very much.
-cyq