Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search Engine Friendly URLS


nconfer

Recommended Posts

Hi,

I've been working on the osCommerce cart and I've only had trouble with one piece thus far. When I activate search engine friendly urls (which it says is in development) my links change to the new format but no page displays. This of course is because no page exists in the location of the friendly urls.

 

Now I've seen some posts in the past. One person just left it as it was still in development but many others have mentioned that it works and can be turned on. My question is this, other than activating the feature what do I need to do to make the urls work. Do I need to set a default error page for page not found which opens the correct scripts, etc, and where is that found?

 

Could someone please help me on this, it would be much appreciated.

Link to comment
Share on other sites

Yes they work very well and fine, the reason it says (still in development) is because it will only work on a few platforms.

 

To enable them to work you have to make sure of the following.

 

The .htaccess file included in the root folder of oscommerce was uploaded to your server along with your files.

 

Your site is running on an APACHE server (you can ask your host this)

 

The server has Mod_rewrite enabled (again ask your host)

 

You have enabled SEF in admin.

 

If you have met all four of the above, then SEF urls should work without a hitch.

 

HTH

Link to comment
Share on other sites

  • 2 weeks later...

hello all :)

 

i have tried everything to get Safe URLs to work but with no luck... here's my virtual server's account configuration:

 

1) Apache 2.0.40 (Red Hat Linux)

2) PHP 4.2.2

3) mod_rewrite enabled (for my virtual host)

 

here are the changes made to the apache httpd.conf file:

 

== Uncomment the following line:

 

#LoadModule rewrite_module modules/mod_rewrite.so

 

so it looks like:

 

LoadModule rewrite_module modules/mod_rewrite.so

 

 

== Uncomment the following line:

 

#AddModule mod_rewrite.c

 

so it looks like:

 

AddModule mod_rewrite.c

 

 

== We find the following part:

 

# This controls which options the .htaccess files in directories can

# override. Can also be "All", or any combination of "Options", "FileInfo",

# "AuthConfig", and "Limit"

#

AllowOverride AuthConfig FileInfo

 

and change it to:

 

AllowOverride All

 

 

== Make sure that the following line is as it looks below:

 

# AccessFileName: The name of the file to look for in each directory

# for access control information.

#

AccessFileName .htaccess

 

 

== Just below the previous line, there is a text to protect the *.ht* files:

 

<Files ~ "^\.ht">

Order allow,deny

Deny from all

Satisfy All

</Files>

 

 

== Save the httpd.conf file and restart Apache...

 

and that's about every single thing i have asked to be done (unfortunately i don't have root access)... but when i turn Safe URLs on, i keep getting a 404 not found error from Apache... has anyone successfully turned this feature on in Apache 2?

 

thank you for your time and i am looking forward to hearing your suggestions... :)

 

 

PS: i have read somewhere that in order for the rewrite rules to work, FollowSymLinks should be on? maybe this is the issue? haven't tried it yet...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...