Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

URL Problem


hkgenesis

Recommended Posts

If you edit the configure.php files correctly, that will set the domain name for you. This assumes you have your server and site themselves set up correctly (this is outside of osCommerce).

A very important note: do NOT under any circumstances put a live site on the Web that is hosted on your PC (*AMPP server). Hackers know far more about security issues than you do, and they will eat you alive! Use a commercial hosting service. A PC is OK for playing with a test site (when you don't yet have a server), or doing development on PHP or MySQL levels that your host doesn't yet have, but for nothing else.

Link to comment
Share on other sites

If you mean change a url like ...com/index.php?cPath=1 to ...com/my-first-category-c-1.html, yes, that is possible. There are two addons commonly used for that: Ultimate SEO and SEO 5.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@hkgenesis

 

On 8/27/2017 at 9:47 PM, hkgenesis said:

I'm new to oscommerce.

after installed, found the links are http://127.0.0.1/index.php?.... something like that, which means it can only be access locally.

how can make it avaliable for http://www.example.com/index.php? like this

also can use mod to change the url address bar accordlingly?

 

15 hours ago, hkgenesis said:

thanks, it is under construction.

is there a way to rewrite the url address bar?

You say that this site is under construction. Are you developing it on a local computer, or on your host's server? Do you have a domain name registered? Do you have the domain name pointed to your host's server?

If you are developing this on a local computer, then you can not have a www.example.com URL address.

If you are developing this on your host's server, you need your domain name registered and pointed to your host's server.

HTH

Malcolm

Link to comment
Share on other sites

Just because goto hosting company instead of self host

 

One Question in information box we added a new item "pay" however the url display is

http://www.xxxx.com/FILENAME_PAY

instead of pay.php

sure the format is same as

      '    <a href="' . tep_href_link(FILENAME_PAY) . '">' . MODULE_BOXES_INFORMATION_BOX_PAY . '</a><br />' .

With the pay.php stayed in root

anybody know why?thanks

Link to comment
Share on other sites

sory, it does not work

  '    <a href="' . tep_href_link(FILENAME_PAY) . '">' . MODULE_BOXES_INFORMATION_BOX_PAY . '</a><br />' .
              '    <a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a><br />' .
              '    <a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a><br />' .

 

the code is above , all works except pay, filename pay.php,shipping.php already leave on www

Link to comment
Share on other sites

@hkgenesis,

In your code replace:

tep_href_link(FILENAME_PAY)

by:

 tep_href_link('pay.php') 

filename constants ( FILENAME_PAY ) are not needed and removed in the latest 2.3.4BS and future versions. Yours isn't defined in "includes/filenames.php", that's why it doesn't work. Use hardcoded, real filenames instead => 'pay.php'  and you'll be in the avantgarde of actual OsCommerce coding.

THis is what Gary suggested in his post:

7 hours ago, burt said:

 tep_href_link('pay.php') 

 

Link to comment
Share on other sites

18 hours ago, hkgenesis said:

how to switch form input field compulsory or not compulsory?

That is a totally different issue. Open a new thread for that question, rather than overloading this one and confusing everyone.

Link to comment
Share on other sites

On 6/9/2017 at 8:25 PM, raiwa said:

@hkgenesis,

In your code replace:


tep_href_link(FILENAME_PAY)

by:


 tep_href_link('pay.php') 

filename constants ( FILENAME_PAY ) are not needed and removed in the latest 2.3.4BS and future versions. Yours isn't defined in "includes/filenames.php", that's why it doesn't work. Use hardcoded, real filenames instead => 'pay.php'  and you'll be in the avantgarde of actual OsCommerce coding.

THis is what Gary suggested in his post:

 

Thank you so much!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...