Before anybody tells me to do it, I've already had the *.mydomain.com subdomain pointed to my root directory. Now, here's the problem:
I have this code:
in my .htaccess file. It works, but it doesn't quite do what I want. Right now, any request, for any file by using portal.mydomain.com just redirects to the portal directory. For example portal.mydomain.com/somefile.php just goes to mydomain.com/portal. I want it to go to mydomain.com/portal/somefile.php. Any help is appreciated, thanks
I have this code:
Code Select
RewriteCond %{HTTP_HOST} ^portal.mydomain.com(.*)$ [OR]
RewriteCond %{HTTP_HOST} ^www.portal.mydomain.com(.*)$
RewriteRule ^(.*)$ portal/%1 [L]
in my .htaccess file. It works, but it doesn't quite do what I want. Right now, any request, for any file by using portal.mydomain.com just redirects to the portal directory. For example portal.mydomain.com/somefile.php just goes to mydomain.com/portal. I want it to go to mydomain.com/portal/somefile.php. Any help is appreciated, thanks
![Smiley :)](https://forum.freepgs.com/Smileys/default/smiley.gif)