Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search Engine Friendly URLs - Not Working


rdavido

Recommended Posts

Posted

I keep getting Page Not Found errors with "Search Engine Friendly URLs" enabled. When I "remove" this from the Services, the store still has the search engine friendly URLs in it (yes, I reloaded and cleared cache).

 

I have gone crazy trying to locate anything on this but with no luck. I would like to get it it working, but not sure why it's not working. I think it may be my apache config is missing a rewrite rule, but can't find anything about it.

 

What is it that allows the links to work when with the Search Engine Friendly URLs service is enabled? I think it's a rewrite rule in apache, but I could be mistaken. I can't fiind anything on it in the INSTALL doc, the Wiki docs or here in the forum.

 

I am using the latest release, but had this problem in a release a week ago too. Since no one else has posted anything about this, it must be something simple I am missing.

 

This is on RH9, Apache 2.0.40, PHP 4.2.2

*edit*

Posted

Argg! Search Engine Safe Urls being "true" is hard-coded into includes/functions/html_output.php . It's driven me crazy for the past few days. Explains why no one (save perhaps a developer) could have helped.

 

 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true)  

 

Still, I'd love to know what makes Search Engine Safe URLs work. Why doesn't anyone seem to know? This is my second, unanswered topic on this.

*edit*

Posted

I ran into this same problem yesterday. Noone answered my post either, but I found the answer through some Google research. If your server runs Apache, this thread should help you out:

http://www.oscommerce.com/forums/index.php?showtopic=95840&hl=

If you're on another sort of server, I don't know how to help you.

 

btw - the SEF function shouldn't be hard-coded into anything, it's adjustable in the admin screen unless you have a modified version of osC.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Posted

vasttech wrote:

Search the forums. This question has been asked 100s of times before. A lot of times people will not answer questions that are asked all the time.

 

If a question is asked hundreds of times, then perhaps it should be included in <gasp> the FAQ (that IS it's purpose) or as part of the INSTALL doc rather than simply not answering it because it's been asked "100's of times". I DID search the forums and continually got empty or 1000's of non-related results. So telling me to search the forums is redundant and unhelpful at best.

 

You really didn't answer it because 100's of people asked the question before? Unbelievable. That is extremely *unhelpful*.Wow, that 100's of people ask it is a clue that it might need to be documented. Get a clue and answer people's questions folks, jeez. Just posting a link, like the last guy did, is awesome. He didn't re-answer the question, just posted a link to the solution.

 

Thanks for posting a link BlueNoteMKVI. And, yes, my cut and paste is straight out of html_output.php - the sefu set to true is hardcoded in the current release as of yesterday. It drove me crazy why I couldn't get it to stop. Apparantly it's been moved from the main store configuration to "services" - it's likely a temporary thing.

*edit*

Posted

Here's a hint that will help out with a lot of things - don't use the latest CVS version on a live store. Download the Milestone version. The CVS is a work in progress that may or may not be stable, it contains all of the changes to code up to that day.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Posted

yeah, that's a nice thought but it's old and has lots of bugs that have been fixed. If the change to the apache configuration file had been documented, this problem would not have surfaced nor the "100's of questions" this problem has caused.

 

Also, most contributions are for the CVS version, not the milestone version so there is little to no value in using the milestone version.

*edit*

Posted
Care is taken to keep the development versions working as stable as possible - however certain features may not yet be completely implemented and may break the overall solution.

 

I don't think there is any reason to complain? :)

 

Many *old* contributions were for CVS prior to the milestone releases - ie. for version 2.2 rather than 2.1 - I cannot think of one that has been released post MS1 for CVS

 

You are well advised to use a stable release :P

 

Matti

Archived

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

×
×
  • Create New...