Challenge: Recently I tried to move an older OSC website from one host to another host. After I made changes in the configure.php files and uploaded them to the new host, the first page could not be loaded such error messages as “unable to determine the page link…”. And everything would be fine if I commented out any codes with basename($PHP_SELF) function.
After I checked my phpinfo() I found out the register_globals already turned on, then I concluded that this is not the way I needed to continue.
Next, I replaced $PHP_SELF with _SERVER['PHP_SELF'] , all pages appeared fine, but all these images disappeared since the image path became to something like “http://www.domainname.com/product_info.php/path/c/images/…”.
Working Solution:
Finally, I got the working solution: I need to turn off the Use Search-Engine Safe URLs feature through the back-end admin portion.
How-to:
- Log into your administrative portion.
- Click Configuration–>My Store.
- Find “Use Search-Engine Safe URLs (still in development)” and click edit button, then make the option as “false”.
- Refresh your website, everything should be fine now.
1. create an .htaccess file
2. write the following text on the .htaccess file:
3. php_value register_long_arrays on
2. upload it inside your catalog/ folder
[
Reply ]