Using mod_rewrite on subdomains?

Status
Not open for further replies.

mneylon

Administrator
Staff member
I haven't come up with a solution for you.. well not exactly...

If you could make the DirectoryIndex of the vhost to be that query string ie.
Code:
DirectoryIndex index.php?yourquerystring

And were to make the document root of the subdomain point to that...
 

dude

New Member
Hey,

Thanks for the reply. I'm not sure I fully understand though...

Which file would I need to add "DirectoryIndex index.php?yourquerystring" to?

Also, when you say "make the document root of the subdomain point to that..." do you mean do a htaccess redirect?

Apologies if I'm being silly...

Thanks.
 

mneylon

Administrator
Staff member
It's all in your apache config :)

Code:
<VirtualHost *:80>

ServerName blah.yourdomain.ie
DocumentRoot /whereyouputthefiles
DirectoryIndex somefile?query
.......
</VirtualHost>

No guarantees that it will work ...
 
Status
Not open for further replies.
Top