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
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, info@mytunes.fm 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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.