Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Seach Engine Friendly URL Support


BlueYon

Recommended Posts

Hey

 

i've just installed this contrib but my Url's aren't being rewritten properly

my urls are coming out like /Store/catalog/index.php/cPath/1_17

 

Tried to find a solution in this htread but coudl'n't find anything, too many pages to sift thru

 

Any help would be appreciated

Looks like your rewrite engine is either not enabled or not working. My hosted site works ok but I just transferred my site to a local install on my CentOS box and I'm getting the same issue. Will let you know when I fix it

 

- Nick

Link to comment
Share on other sites

  • Replies 968
  • Created
  • Last Reply

Top Posters In This Topic

Looks like your rewrite engine is either not enabled or not working.  My hosted site works ok but I just transferred my site to a local install on my CentOS box and I'm getting the same issue.  Will let you know when I fix it

 

- Nick

Ok, couple of points

 

- Only works if under root directory

- Obviously you need to setup your cache directories per install.html correctly

- I had to add "RewriteBase /" to my .htaccess file

 

Still have a couple of issues with popups not working, probably as a result of adding in the RewriteBase / but that is the only way I could get it not to give a Server 500 error, and I get "Unable to determine the page link!" for list of products in any category.

Link to comment
Share on other sites

Find this line in url_rewrite.php

 

return $url_parts['scheme'] . '://' . $url_parts['host'] . $url_parts['path'] . '/';

 

and change the '/'; to '.html';

 

and replace

 ? ? ?// Put the request URL into an array
? ? ?$request_url_array = explode('/', trim(getenv('REQUEST_URI'), '/'));

 

with

 

 ? ? ?

// Put the request URL into an array
? ? ?$url = str_replace('.html', '', getenv('REQUEST_URI'));
? ? ?$request_url_array = explode('/', trim($url, '/'));

 

 

 

 

http://myserver:9090/ is changed as http://myserver:9090.html/

Help Plz

Link to comment
Share on other sites

hi guys, i re-read this topic twice now and i cannot solve my problem.

 

i installed this mod, but the urls do not change. they're still showing up http://mysite.com/product_info.php/product...eef0107b63fd3c2

 

i have NO other mods installed at all, does this matter?

 

no errors or anything, it just doesn't work. i don't have manufacturers and a few other boxes showing, could that pose a problem? (sorry for the stupid question, i'm new to php and oscommerce)

Link to comment
Share on other sites

hi guys, i re-read this topic twice now and i cannot solve my problem.

 

i installed this mod, but the urls do not change. they're still showing up http://mysite.com/product_info.php/product...eef0107b63fd3c2

 

i have NO other mods installed at all, does this matter?

 

no errors or anything, it just doesn't work. i don't have manufacturers and a few other boxes showing, could that pose a problem? (sorry for the stupid question, i'm new to php and oscommerce)

 

Basic Things to check if you want to use SEF urls

1.Apache Mod_rewrite enabled or not

Check httpd.conf for the following (should not have # in front of this)

LoadModule rewrite_module modules/mod_rewrite.so

AddModule mod_rewrite.c

2.In Oscommerce go to admin/configuration/mystore

set Use Search-Engine Safe URLs = true

3.In Oscommerce go to admin/configuration/cache

Set Cache=true and cache directory to a read/writeable directory

4.check the .htaccess

if SEF is still not working then post messages

 

:D :D :D :D

Link to comment
Share on other sites

hi guys, i re-read this topic twice now and i cannot solve my problem.

 

i installed this mod, but the urls do not change. they're still showing up http://mysite.com/product_info.php/product...eef0107b63fd3c2

 

i have NO other mods installed at all, does this matter?

 

no errors or anything, it just doesn't work. i don't have manufacturers and a few other boxes showing, could that pose a problem? (sorry for the stupid question, i'm new to php and oscommerce)

 

You havce no set it up right if you have session ids in your urls

 

You need tro set force cookies also make sure you have set the cookie domain up.

Link to comment
Share on other sites

Basic Things to check if you want to use SEF urls

1.Apache Mod_rewrite enabled or not

yes

 

Check httpd.conf for the following (should not have # in front of this)

where do i find this? i'm on a shared server.

 

2.In Oscommerce go to admin/configuration/mystore

set Use Search-Engine Safe URLs = true

yes

 

3.In Oscommerce go to admin/configuration/cache

Set Cache=true and cache directory to a read/writeable directory

yes

 

4.check the .htaccess

yes

Link to comment
Share on other sites

4.check the .htaccess

yes

Check that your .htaccess is being read correctly by putting in a junk entry which will cause a server 500 error. Try addig ThisIsNotADirective to your .htaccess and see if you get the error

Link to comment
Share on other sites

Basic Things to check if you want to use SEF urls

1.Apache Mod_rewrite enabled or not

yes

 

Check httpd.conf for the following (should not have # in front of this)

where do i find this? i'm on a shared server.

 

2.In Oscommerce go to admin/configuration/mystore

set Use Search-Engine Safe URLs = true

yes

 

3.In Oscommerce go to admin/configuration/cache

Set Cache=true and cache directory to a read/writeable directory

yes

 

4.check the .htaccess

yes

 

check and set the following settings as mentioned below

Admin/Configuration/sessions

Force Cookie Use True

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session False

Link to comment
Share on other sites

Any Body to help me in this ?

BlueYon Can you help me plz?

 

 

If you want .html extension instead, you would have an easier time using one of these seo url contributions: ultimate seo urls , sef link transformer or nimmit sefs

Link to comment
Share on other sites

ok i followed your suggestions, and it still doesn't seem to be working.

 

the products show up as catalog/product_info.php/products_id/30 instead of session ids (which isn't what this mod is trying to do?), and when i try to add an item to the cart i get this error:

 

"We have detected that your browser does not support cookies, or has set cookies to be disabled."

 

i have all cookies enabled on my browser.

Link to comment
Share on other sites

ok i followed your suggestions, and it still doesn't seem to be working.

 

the products show up as catalog/product_info.php/products_id/30 instead of session ids (which isn't what this mod is trying to do?), and when i try to add an item to the cart i get this error:

 

"We have detected that your browser does not support cookies, or has set cookies to be disabled."

 

i have all cookies enabled on my browser.

 

Set your cookie domain up in includes/configuration.php

 

cookie domain is normally www.yoursite.com

 

I did say on the instructions if you can not do the first step don't install this mod. Anyway once you do this it should work!

Link to comment
Share on other sites

the cookie domain is already setup :)

 

there is a lot of basic steps missing out of the installation. this is my first mod for oscommerce, but i've done hundreds for other php/sql programs like invisionboard and whatnot (i'm far from a pro, but i have a basic understanding of things).. so that type of thing is not new to me. but what is new to me is the lack of detailed instructions... like what is the BTS folder for? where does it go, what's it's use??

 

perhaps including some of what baluvee posted to me in your installation files, there would be less problems with installation? :)

 

i will try another installation tomorrow, thanks for all the help guys :) :)

Link to comment
Share on other sites

If you want .html extension instead, you would have an easier time using one of these seo url contributions: ultimate seo urls , sef link transformer or nimmit sefs

 

Thanks for the suggestion.

I did already tried all those.But I FEEL this better then others(This is my opinion,so guys don't start the proxy war).

So I do request BlueYon to help me out

Edited by baluvee
Link to comment
Share on other sites

Thanks for the suggestion.

I did already tried all  those.But I FEEL this better then others(This is my opinion,so guys don't start the proxy war).

So I do request BlueYon to help me out

 

I did not suggest the options to start a discussion on which one is the best, but since you for some reason want .html those have it as their standard modus.

 

I personally do favor BlueYon's url formationg, ie. with a / and not a .html B)

Link to comment
Share on other sites

I did not suggest the options to start a discussion on which one is the best, but since you for some reason want .html those have it as their standard modus.

 

I personally do favor BlueYon's url formationg, ie. with a / and not a .html  B)

:D :D :D

Thanks for the reply

Link to comment
Share on other sites

:D  :D  :D

Thanks for the reply

 

Hi BlueYon

I have a suggestion to make

if you can SEF urls like this

for products

www.myserver.com/DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html

for categories

www.myserver.com/DVD-Movies/category_id.html

www.myserver.com/DVD-Movies/Science-Fiction/category_id.html

this is would be the Optimal SEF URLs

 

We do need support for catalog path i.e www.myserver.com/catalog//DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html

Think about this

 

Warm Regards

(still my problem is not solved.hope you will help me :D :D )

Link to comment
Share on other sites

This is my second attempt at creating a better version of the search engine safe urls.

 

It will change URLS from:

http://www.yoursite.com/product_info.php?c...4&products_id=1

 

to:

 

http://www.yoursite.com/Hardware/Graphics-...atrox-G200-MMS/

You can see it being used on a live site here:

 

http://www.itchi-tech.com

Hi,

Very nice website.

How did you disable the right hand side infoblocks?

I want to disable my right hand side infoblocks and only keep the left ones. How do I do that?

Edited by checksum
Link to comment
Share on other sites

Hi BlueYon

I have a suggestion to make

if you can SEF urls like this

for products

www.myserver.com/DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html

for categories

www.myserver.com/DVD-Movies/category_id.html

www.myserver.com/DVD-Movies/Science-Fiction/category_id.html

this is would be the Optimal SEF URLs

 

We do need support for catalog path i.e www.myserver.com/catalog//DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html

Think about this

 

Warm Regards

(still my problem is not solved.hope you will help me  :D  :D )

 

it does not matter what is in the URL's as long as it has the keywords in there.

 

Also if i change now like what you have said people are going to install this contribution and find all there urls have changed. The search engines will be leading people to the wrong pages and sales may drop. Its ok how i have set it up.

 

I'm not adding .html to the end because I looks better with just the /.

Link to comment
Share on other sites

It does not matter what is in the URL's as long as it has the keywords in there.

 

Also if i change now like what you have said people are going to install this contribution and find all their urls have changed. The search engines will be leading people to the wrong pages and sales may drop. Its ok how i have set it up.

 

I'm not adding .html to the end because I looks better with just the /.

 

Ultimate SEO is a good contirbution, but I prefer my urls without the .html.

 

Also having having session ID's in your URL's and not using search engine safe URL's is bad search engine optimization!

 

Spiders can not properly index your web site with session ID's. This is a well know fact and oscommerces built in session ID killer does not work properly because it does not know all the different spiders out there. A lot of copmanies use there made spiders. Once they spider your web site they might put a linki from there site to use in there own related subject directories. the more links the better the search eninge postion!

 

Always use force cookies to get rid of session ids!

 

it works for my site.

 

I'm 3rd psotion in Yahoo, recently dropped to 4th in MSN and at the bottom of the second page for Google.

 

I have around 250,000 unique visitors a month at the moment.

 

My site http://www.itchi-tech.co.uk

 

My main keyword is minimoto

 

Google

http://www.google.co.uk/search?q=minimoto&...f&start=10&sa=N

 

Yahoo

http://uk.search.yahoo.com/search?fr=fp-ta...moto&meta=vc%3D

 

MSN

http://search.msn.co.uk/results.aspx?FORM=...1252&q=minimoto

 

I was first in Google in the USA market over christmas, because I used a .com for the domain name. I then change the domain name in march so I'm still slowly moving back to top postion in Google, but now for the UK market.

 

Also my MSN page dropped from first postion because some moron tryed copying my site who was in the same business. They used MS front page and manged to copy all the content so it looked to the search engines like spam.

 

If I can get to the top 3 postion in Google that is pure money just for a good postion.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...