Jump to content

htacces question ?


aliento

Recommended Posts

Firstly I'll assume your DNS settings are setup correctly to allow the subdomains to get forwarded to your VirtualHost, if that is the case then you do something along the lines of...

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com

RewriteRule ^(.*)$ /dir/%1/$1

Link to comment
https://forums.phpfreaks.com/topic/247782-htacces-question/#findComment-1272623
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.