Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Ultimate SEO URLs - by Chemo


Guest

Recommended Posts

  • Replies 1.9k
  • Created
  • Last Reply

Top Posters In This Topic

I just installed Ultimate SEO URLs, seemed to go well. But when i click on a prduct from my index page i get a 404 error, If i set SEO URLs to false in admin, then i can click products and alls normal but then SEO dont work.

 

Any help appreciated

 

george

 

OS: Windows XP Pro

HTTP Server: Apache/2.2.4 (Win32)

PHP Version: 5.2.1

Database: MySQL 5.0.33

localhost (127.0.0.1)

Link to comment
Share on other sites

  • 3 weeks later...

Can some one help me please. I'm trying to install this v2.2.2e but got a problem with STEP #3 - Edit includes/functions/html_output.php. I cannot find the code that i need to replace, i even checked with original RC1 file and it was the same.

 

figured it out

Edited by none_uk
Link to comment
Share on other sites

Well got it working i thought it would of been harder, aslo thought i manually had to rename links lol

 

i thing though, not sure if its my host but since install this pages take longer to load.... i'll check it later to be sure

Link to comment
Share on other sites

I'v noticed a problem, when i click on my 1st category then it's sub cat , then 1st category again , it shows Link/URL to last sub cat in the 1st category.

 

any ideas?

 

 

I still having this problem. example: i go to my site/catalog and click main category:

1st: http://www.mysite.co.uk/catalog/hid-conversion-kit-c-26.html

2nd: http://www.mysite.co.uk/catalog/xenon-bulb-c-35.html

 

Now if i click a sub category in 1st which would be http://www.mysite.co.uk/catalog/hid-conver...it-c-26_30.html

 

then click on any of the main category they change to this

1st http://www.mysite.co.uk/catalog/hid-conver...c-26_30_26.html This should be http://www.mysite.co.uk/catalog/hid-conversion-kit-c-26.html

2nd: http://www.mysite.co.uk/catalog/xenon-bulb-c-26_30_35.html this should be http://www.mysite.co.uk/catalog/xenon-bulb-c-35.html

 

any ideas? the main problem is on 1st, as when the url changes it no longer shows the main cat instead it shows the items of the last sub cat.

 

HELP!!!

 

thank you

Edited by none_uk
Link to comment
Share on other sites

used this to fix worked for few clicks till i added something via buy now and its not working also seeing Csid on every link, what do i do now?

 

For version 2-2.2e with support for Link Manager contribution
*************************************************************

STEP 1:

Make sure you have installed the SEO 2-2.2e contribution as per installation instructions.

STEP 2:

Edit the .htaccess file mentioned in above documentation and add the following after the last rule:

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}


DP Ramone

Edited by none_uk
Link to comment
Share on other sites

I have installed v 2.2.2e with latest fixes.

Everything seems to be working fine but,

 

If you click on a picture - ok = shop/countryside-picnic-p-14.html

If you click buy button - ok = item goes to the basket.

if you click on reviews - ok = product found

If you click detail - broken link = shop/product_info.php?shop=product_info.php

It seems as it looses the product ID if clicking "details"

 

If just placing cursor over the detail button, link is ok. But when clicking it goes wrong

 

I have tried to look at .htaccess

 

 

CODE

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

 

 

I tried to change .html to htm, as I read somwhere that this could be the problem - but no luck.

 

The installation is by default, no changes made to admin SEO URL section.

 

Any hints?

 

Kenneth

Link to comment
Share on other sites

Dont know if any one can help me with this issue.

Ultimate SEO is not generating the HTML URLs the right way

 

instead of: http://www.website.com/categoryname_keyword-c-2.html

 

they are being generated as:

 

http://www.website.com/-c-2.html

 

I will really apprieciate a solution. Thanks.

 

Dont know if this can help, but did you give the rigt path in your .htaccess file?

Link to comment
Share on other sites

Dont know if this can help, but did you give the rigt path in your .htaccess file?

 

 

I guess! Its pointing to the root of the website and this is where the oscommerce is installed.

 

I remember for an other installation that i did earlier on, the URLs worked fine for one day, i.e. http://www.website.com/categoryname_keyword-c-2.html

but the next day they got changed to http://www.website.com/-c-2.html and ever stayed like that.

Link to comment
Share on other sites

Hello,

 

i have the same Problem. Browsing pages on the category page does not work.

 

My .htacces:

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /shop/catalog/

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ default.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-([0-9]+).html$ default.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-([0-9]+).html$ product_listing.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-([0-9]+).html$ product_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-review-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-reviewinfo-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

Can i find the Problem here?

I have a old OSC-Version from 2002. SEO works fine, but i have only this Problem in the Categories. IN Search-Results i can browse the Pages.

 

TY

Andreas

Link to comment
Share on other sites

hi all ! upgraded from the cName version to the rewrite version, and the fix by Jack for the URL problem.

 

Anyway, the redirect from my old ..

 

domain.com/index.php?cName=surveyors-ladders (example)

 

doesnt seem to work right.. the url gets rewritten as

 

domain.com/?cName=surveyors-ladders

 

ie it just removes the index.php, and the page shown is the index page.. obviously this is going to cause me probs.. heres my htaccess..

 

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC]

RewriteRule . / [R=301,L]

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING

 

 

Anyone any ideas?

Edited by adiwillow
Link to comment
Share on other sites

  • 3 weeks later...
Well I don't know much about php but when I changed line 1073 from return current page to return return the same as the other lines below everything seems to be working.Maybe somebody knows if this will mess something else up.

line : 1064 to1073

 

function requested_page()

{

$protocol = ((int) $_SERVER['SERVER_PORT'] === 443)? 'https://' : 'http://';

$current_page = $protocol . $_SERVER['HTTP_HOST'] . ((!empty($_SERVER['REQUEST_URI']))? $_SERVER['REQUEST_URI'] : '');

$current_page = substr($current_page, strlen(HTTP_SERVER));

if (($pos = strpos($current_page, "?osCsid")) !== FALSE)

$current_page = substr($current_page, 0, $pos).'<br>';

if ($current_page[0] == "/")

$current_page = substr($current_page, 1);

 

Changed commented out // return $current_page;

 

Now

return $return;

 

this kills the redirects, so is no good unfortunately...

 

does anyone know of another solution (the problem is the 'next page' links dont work on product listings..) ?

Link to comment
Share on other sites

Hi

 

Yesterday i install ultimate seo and I have this problem: when force true cookie is "true" login.php and checkout_shipping.php redirect to cookie_usage.php.

If I set in admin/session Force Cookie Use = false works but i have this in url: ?osCsid=f769f4a84a32fd86928612d39e0c3588

 

How could i use this contribution with Force Cookie Use = true ?

 

Best regards,

 

Marian

Link to comment
Share on other sites

Hi

 

Yesterday i install ultimate seo and I have this problem: when force true cookie is "true" login.php and checkout_shipping.php redirect to cookie_usage.php.

If I set in admin/session Force Cookie Use = false works but i have this in url: ?osCsid=f769f4a84a32fd86928612d39e0c3588

 

How could i use this contribution with Force Cookie Use = true ?

 

Best regards,

 

Marian

 

Sessions and cookies really aren't my thing, but I'll have a go.

 

If you force cookie usage a user should be directed to cookie_usage.php if they have cookies off in their browser.

 

the ?osCsid=f769f4a84a32fd86928612d39e0c3588 should disappear after a click or 2.

 

You should have prevent spider sessions set to true in admin and have the latest version of catalog/includes/spiders.txt in place.

 

I personally also set Recreate Session to true as this is another layer of protection.

Link to comment
Share on other sites

Sessions and cookies really aren't my thing, but I'll have a go.

 

If you force cookie usage a user should be directed to cookie_usage.php if they have cookies off in their browser.

 

the ?osCsid=f769f4a84a32fd86928612d39e0c3588 should disappear after a click or 2.

 

You should have prevent spider sessions set to true in admin and have the latest version of catalog/includes/spiders.txt in place.

 

I personally also set Recreate Session to true as this is another layer of protection.

 

I have the same problem with the redirect to cookie_usage.php and I checked my browsers - cookies are on in both Firefox and IE, none of them works.

My settings are:

force cookies true

prevent spider sessions true

enable SEO-urls true

 

thanks

Link to comment
Share on other sites

I have the same problem with the redirect to cookie_usage.php and I checked my browsers - cookies are on in both Firefox and IE, none of them works.

My settings are:

force cookies true

prevent spider sessions true

enable SEO-urls true

 

thanks

Don't think that the cookie usage thingy has anything to do with Ultimate SEO. More likely an RC problem.

Link to comment
Share on other sites

I've tried to search for this but with no luck - so apologies if it is covered. I've installed this MOD, however, I'm having one problem with a customisation I made.

 

It occurs when I have more than one variable submitted through a form which uses the GET action and the ampersands are output as "&" instead of "&" in the url.

 

e.g. on submitting the form, the following page is returned:

 

/somecategoryname-c-64_21.html?size_filter_id=118&x_id=107&filter_id=107&sort=3a (does not work)

 

instead of:

 

/somecategoryname-c-64_21.html?size_filter_id=118&x_id=107&filter_id=107&sort=3a (works)

 

...

 

I'm assuming it is the seo.class.php which is converting the "&" to "&". Has anyone experienced the same or have some advice? Would be most appreciated.

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...