Jump to content

Recommended Posts

I have a hosted Apache website. I do not have a dedicated server, so I (obviously) do not have access to the root directory.

 

Currently I have a website up and running with the default file (index.html) at www.mydomain.com

 

I need to create a CNAME or alias called support.mydomain.com and have it actually point/redirect to www.mydomain.com/support

 

The problem I am running into is that I CAN create the CNAME support.mydomain.com just fine, however I cannot use a slash in the address I want it to point/redirect to.

 

One of the technicians suggested that I add a .htaccess file that would make use of the redirect command. So far, I have found that the redirect command will no accept a full path in the \"from\" address, even though it is required in the \"to\" address. SO this will not work.

 

Is there another command I can use? Any help here would be appreciated. I am an Apache neophyte, but trying to learn (slowly).

Link to comment
https://forums.phpfreaks.com/topic/37-question-re-htaccess-file-and-redirect/
Share on other sites

What version of Apache are you running? There was this \"forward slash bug\" awhile back that was giving these kinds of problems. It sounds like a simple misconfiguration in your apache config files if you are running an up to date version of Apache.

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.