Posted 22 August 2012 - 03:34 PM
I updated the: include/configure.php and admin/include/configure.php by changing the
HTTP_SERVER, ‘http://www.mydomain.com’ to HTTP_SERVER, ‘http://www.store.mydomain.com’
HTTP_CATALOG_SERVER, ‘http://www.mydomain.com’ to
but the site was missing all the images and all the links are messed up. When I click any image or login for example I get error 404 page not found
Can anyone please tell me what should I do or what should I change in the configure.php files inorder or the redirect to work
Thank you for any help
New OsCommerce User
Posted 22 August 2012 - 03:43 PM
You do not need "www.store...", just "store..." for the subdomain name. I presume that you've updated all domain name occurences in both configure.php files. Don't forget the filesystem (FS_) paths to your subdomain are probably different from the original domain.
How are you redirecting your site? Maybe there's a problem there. Again, any SEO involved? SEO usually means changes to the .htaccess file, and there could be a conflict between your redirection and SEO's own redirection.
Posted 22 August 2012 - 05:02 PM
I don’t have any SEO add-on
I didn’t change anything in the .htaccess file. As I told you I am new to all this
Posted 23 August 2012 - 12:37 AM
A subdomain "mysub.mydomain.com" is typically in "mydomain.com/mysub/" (...public_html/mysub/). Are you saying that you installed osC in the main domain, created a subdomain, and then redirected the entry point for the subdomain over to your osC installation in the main domain? If that's what you did, I would leave the configure.php entries alone (keep them mydomain.com/oscommerce/catalog and the original FileSystem paths). Just redirect the subdomain to the store, so that a visitor finds themselves in mydomain.com rather than mysub.mydomain.com.
Some hosting control panels have a lot of trouble redirecting between subdomains and main domains. You may well have to manually code the .htaccess file to do the redirection correctly.
What exactly are you trying to accomplish here with the subdomain and redirection?
Posted 23 August 2012 - 02:55 PM
“Are you saying that you installed osC in the main domain, created a subdomain, and then redirected the entry point for the subdomain over to your osC installation in the main domain? If that's what you did,”
that is exactly what I did and it is working just fine but when I navigate to another page let’s say login it will take me back to the main domain. The url will say www.mydomain.com/oscommerce/......
What I need to accomplish is when I navigate to another page the url will say
Do you think that is doable???
Posted 24 August 2012 - 01:14 AM
Do not use www.store... use just store... that's the whole point of a subdomain.