Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

about the home page


sweetafton

Recommended Posts

the main page of my website is http://mysite.com/catalog. i can go to http://www.mysite.com/catalog. but when i click any other page eg prudct page the www will gone. and there is another problem. that is when i browse http://www.mysite.com it appears 404 error. looks like http://mysite.com/catalog because my home page.

 

there are two things i don't know what to do .

 

first i want make http://www.mysite.com for my homepage not http://mysite.com/catalog.

 

second i want my site just looks like most others have the www in font when browsing. now like http://mysite.com........at the moment. can anyone tell me what should i do please.

i am using web host . with unix system.php 4.

Link to comment
Share on other sites

the main page of my website is http://mysite.com/catalog. i can go to http://www.mysite.com/catalog. but when i click any other page eg prudct page the www will gone. and there is another problem. that is when i browse http://www.mysite.com it appears 404 error. looks like http://mysite.com/catalog because my home page.

 

there are two things i don't know what to do .

 

first i want make http://www.mysite.com for my homepage not http://mysite.com/catalog.

 

second i want my site just looks like most others have the www in font when browsing. now like http://mysite.com........at the moment. can anyone tell me what should i do please.

i am using web host . with unix system.php 4.

 

Your story is not realy easy to understand (why not post a link to your real site?).

 

Maybe a clean install in the right location will solve your problem the quickest (you can backup your database first and after the clean install restore it with the rest of your files).

If you did not implemented any contri's or filled your database you do not need to backup anything.

Norman in 't Veldt

 

Moderator

osCommerce The Netherlands

Link to comment
Share on other sites

Your story is not realy easy to understand (why not post a link to your real site?).

 

Maybe a clean install in the right location will solve your problem the quickest (you can backup your database first and after the clean install restore it with the rest of your files).

If you did not implemented any contri's or filled your database you do not need to backup anything.

 

Check your catalog/includes/configure.php file this has all the paths for your store. You can change the url to what you want there.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Check your catalog/includes/configure.php file this has all the paths for your store. You can change the url to what you want there.

 

Oh yeah

You will also have to change the permissions to 666 on this page to upload it and then back to 444 after to avoid it being hijacked.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Oh yeah

You will also have to change the permissions to 666 on this page to upload it and then back to 444 after to avoid it being hijacked.

 

 

i am having the same issue, where my store is only accessible to www.masterlockstore.com/catalog when i want it to be www.masterlockstore.com

 

heres my configure.php file, which part do i need to change? also, if i change it here, wont the search engine crawlers blacklist me for redirecting?

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.masterlockstore.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.masterlockstore.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'masterlockstore.com');

define('HTTPS_COOKIE_DOMAIN', 'masterlockstore.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/httpd/vhosts/masterlockstore.com/httpdocs/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

i ftp the fresh osc to public_html folder.then it will be like what i said above.do you know where i can find the document to teach me how to change the filecatalog/includes/configure.php .or maybe which kind know i need so that i can go to learn it. thank you.

Link to comment
Share on other sites

i ftp the fresh osc to public_html folder.then it will be like what i said above.do you know where i can find the document to teach me how to change the filecatalog/includes/configure.php .or maybe which kind knowlege i need so that i can go to learn it. thank you.

Link to comment
Share on other sites

Download the includes/configure.php file via FTP and edit it in a plain text editor like Notepad. You only need to change a few entries (ignore the https entries if you don't use ssl)

 

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

define('DIR_FS_CATALOG', '/var/www/html/); //edit as necessary for your website

 

In admin/includes/configure.php you'll find one entry for DIR_WS_CATALOG which you need to change to '/' and one entry for DIR_WS_ADMIN which you need to change to '/admin/'

 

Vger

Link to comment
Share on other sites

where my store is only accessible to www.masterlockstore.com/catalog when i want it to be www.masterlockstore.com

 

You have to move the entire contents of the 'catalog' folder to the root of your web and then edit the two configure.php files.

 

Vger

Link to comment
Share on other sites

i am using web server host.the root server you said is it means i ftp to just under the home folder which is before the public_html and ftp_html. what i have in my server is home.under home is public_html and ftp_html.i ftp to public_html .so looks like i ftp to the wrong place.is it right. thank you.

Link to comment
Share on other sites

define('DIR_FS_CATALOG', '/var/www/html/); //edit as necessary for your website

acctuly i don't know how to edit<<< define('DIR_FS_CATALOG', '/var/www/html/); //edit as necessary for your website>>>.sorry about that .but do you mind to tell me that what should i use to instead var www html.

i change the rest but i don't know why or what's the reason.do you have any suggestion that where i can learn it .or any book. thank you.

Link to comment
Share on other sites

i just made some mistake.i can go to the administration tool.but can not not go any futher. can not choosing any

action. even i choose backups it appears 404 error.does it means i have to install a fresh osc again.

i can intall a new one in 20 mins but i am wondering that in the future if i met something like this what should i do.

thank you.

Link to comment
Share on other sites

ok, first off thanks vger, seems to have worked great for me, i moved the files to my webroot, and changed both config files, and the page seems to work great.

 

I get a strange error on some screens of admin tho,

 

Error: Catalog images directory does not exist: /home/httpd/vhosts/masterlockstore.com/httpdocs/catalog/images/

 

which file specifies the images directory? is it both configs again?

Link to comment
Share on other sites

ok, first off thanks vger, seems to have worked great for me, i moved the files to my webroot, and changed both config files, and the page seems to work great.

 

I get a strange error on some screens of admin tho,

 

Error: Catalog images directory does not exist: /home/httpd/vhosts/masterlockstore.com/httpdocs/catalog/images/

 

which file specifies the images directory? is it both configs again?

i still didn't figure out how to make my home page work. and you said move it to the root server. i got confuess which one is root server is home or public_html. if you have time. please tell me what did you do to make it work. thank you.

Link to comment
Share on other sites

i still didn't figure out how to make my home page work. and you said move it to the root server. i got confuess which one is root server is home or public_html. if you have time. please tell me what did you do to make it work. thank you.

 

 

The root of your webserver would be wherever your original index.html file was. in my case it was the httpdocs folder. So i cut all the files in the catalog folder, and pasted them into httpdocs. Changed the 2 configure files and it works now.

 

most webhosts create a defualt index.html file for your new pages. so wherever that is is where u put the catalog contents :)

Link to comment
Share on other sites

  • 4 weeks later...

Hi there, I have a similiar but slightly different problem and I don't want to do anything until I am sure...

 

Currently my site address is: http://www.cmm.com.au/osc6/ but I want to change the directory name from osc6 to http://www.cmm.com.au/drug-testing - any ideas???

 

The reason is because I am setting up 4 sub domains and this is the first, however I didn't know anything about osc before I started and now I realise I need to rename the folder but my fear is that if I do that I will wreck links throughout the site??

 

Can someone please help??

 

Another slightly related issue... I might be stretching my luck here, but what the hell - nothing ventured, nothing gained.... I have & will continue to search, but have been looking for hours and cannot find an answer...

 

- does anyone know how to link the 'home' button at http://www.cmm.com.au/osc6 (I have a site in which I have installed osc6 as a sub domain) back to the 'main'site at http://www.cmm.com.au/ ?

 

Thank you if you can.. :)

Link to comment
Share on other sites

  • 1 year later...
Download the includes/configure.php file via FTP and edit it in a plain text editor like Notepad. You only need to change a few entries (ignore the https entries if you don't use ssl)

 

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

define('DIR_FS_CATALOG', '/var/www/html/); //edit as necessary for your website

 

In admin/includes/configure.php you'll find one entry for DIR_WS_CATALOG which you need to change to '/' and one entry for DIR_WS_ADMIN which you need to change to '/admin/'

 

Vger

 

Hi all-

 

Question - just so I am understanding this correctly - you need to move all files to the root, then change both configure.php files.

 

Is there a way to do this without moving the files? I thought you could redirect via htaccess file?

 

Just checking... I'm sure there are plusses and minuses to both ways...

 

--JH

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...