Jump to content

virtual subdomain


chrischen

Recommended Posts

I found this code:

RewriteCond %{HTTP_HOST} !www.polemicpost.com$ [NC]

RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).polemicpost.com [NC]

RewriteRule (.*) %2/$1 [L]

 

However it doesn't work for me.

 

I'm trying to have it so that graphics.polemicpost.com refers to www.polemicpost.com/graphics, which is a folder. so graphics.polemicpost.com/photo1.jpg is www.polemicpost.com/graphics/photo1.jpg.

Thanks,

Chris

Link to comment
https://forums.phpfreaks.com/topic/131578-virtual-subdomain/
Share on other sites

I added 127.0.0.1            graphics.polemicpost.com

 

to the hosts file and rebooted the computer.

 

Still gives me

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

Link to comment
https://forums.phpfreaks.com/topic/131578-virtual-subdomain/#findComment-684298
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.