Forum Moderators: phranque

Message Too Old, No Replies

Yet another mod_rewrite question (but slightly different)

         

catch2948

4:49 pm on Oct 4, 2005 (gmt 0)

10+ Year Member



I have recently had to migrate a website that had several subdomains to a new server that utilizes Ensim Pro 3.70-21 ... On the old server, I had a relatively pain free time of setting up these subdoamins via .htaccess ... But for some reason, the same mod_rewrite method doesn't work on the new server ... Now, whenever I try to access a subdomain that I have created via .htaccess, I am redirected to another page that is part of Ensim Webppliance Setup ... Have tried many times, but still get the same thing ...

Any ideas as to what may be happening?

As always, thanks in advance for your replies ...

josku_x

4:56 pm on Oct 4, 2005 (gmt 0)



Well, can you post your code that you used in the old server?

catch2948

3:32 am on Oct 5, 2005 (gmt 0)

10+ Year Member



Basically, the code that I used before was as follows:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} subdomain.mysite.com
RewriteCond %{REQUEST_URI}!subfolder/
RewriteRule ^(.*)$ subfolder/$1 [L]

where subdomain is the subdomain name, and subfolder is the name of the subdomain root folder (always the same as subdomain name) ...