I need help with (internal redirecting?) using apache's htaccess.
On my server i have a main domain:
url: domain.com
server-path: /opt/public_html/domain.com/
and a subdomain:
url: sub.domain.com
server-path: /opt/public_html/sub.domain.com/
When a visitor types sub.domain.com
i want the URL to be unchanged. I also want the server to serve the file /opt/public_html/domain.com/index.php
to the visitor. How do i do this in .htaccess?
Also, if the visitor types sub.domain.com/sofa/
the server should serve the file /opt/public_html/domain.com/sofa/index.php
without changing the URL.
Got it? OK last example:
If visitor types sub.domain.com/?big=mac
the server should show the file /opt/public_html/domain.com/?big=mac
without changing the URL.
Any ideas how to do this?