krovvy Posted April 28, 2005 Posted April 28, 2005 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. Quote
j2k4b Posted April 28, 2005 Posted April 28, 2005 I may be wrong... but couldn't you make a subdomain like normal and then use the redirect feature in cPanel to direct it to that directory? Quote
TCH-Thomas Posted April 28, 2005 Posted April 28, 2005 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. Quote
Guest Serpentine Posted April 28, 2005 Posted April 28, 2005 You could just use the redirect feature in cPanel to point it directly to the osCommerce folder. Quote
krovvy Posted April 28, 2005 Author Posted April 28, 2005 (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 April 28, 2005 by krovvy Quote
TCH-Dick Posted April 28, 2005 Posted April 28, 2005 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 Quote
krovvy Posted April 30, 2005 Author Posted April 30, 2005 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 <{POST_SNAPBACK}> I tried that, and it did indeed do the redirection, it showed all the files in /osCommerce instead of the web page. Quote
TCH-Dick Posted April 30, 2005 Posted April 30, 2005 Did you change index.html to the main page for oscommerce? I'm assuming it is index.php. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.