Jump to content

Recommended Posts

Posted

I'm trying to use cPanel to manage my www subdomain. I want to redirect it to /osCommerce. However, I can't use cPanel to do this, because I get:

 

SubDomain Adder

Sorry, www cannot be used in subdomains. However it is implicitly added to all newly created subdomains.

 

What to do? Right now, www just goes to the toplevel of my website, which is /cgi-bin, /images, and /osCommerce. How do I manage this, using cPanel.

Posted

Hi,

As far as I know www is a subdomain itself, so if I understand your question correct, so you will need to created a subdomain without the www, so it will be oscommerce.your-tchhosted-domain.com.

Guest Serpentine
Posted

You could just use the redirect feature in cPanel to point it directly to the osCommerce folder.

Posted (edited)

The redirect feature in cPanel will not work unless you define a subdomain first.

 

CPanel will not let me define www as a subdomain. See above error message.

 

Defining a subdomain such as oscommerce.* is not a solution. People expect that www will be the subdomain. I need to manage this subdomain, in order to redirect it to /osCommerce, so people will see my store, instead of the root directory of my site, where nothing but directories exist. OsCommerce will not allow itself to be installed in the root, it must be installed in a subdirectory.

 

What I need to be able to do is manage www from the cPanel "subdomains" module. Then, I can redirect it. What do we need to do to make this happen?

Edited by krovvy
Posted

You are going about this in the wrong way.

The www directory is not a directory but a symbolic link to public_html.

 

All you need to do is add the following to your .htaccess file.

>DirectoryIndex subdomain/index.html

Posted
You are going about this in the wrong way.

The www directory is not a directory but  a symbolic link to public_html.

 

All you need to do is add the following to your .htaccess file.

>DirectoryIndex subdomain/index.html

 

I tried that, and it did indeed do the redirection, it showed all the files in /osCommerce instead of the web page.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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