Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo


Recommended Posts

Ok, I posted above I could not get this working on my test server, I knew it had something to do with the path in the htaccess file, so I grabbed a pepsi and went for a live test-with backups of course.

My OSC is HEAVILY modded so i have been putting this off for a year....well, put it in and in 5 minutes it was installed and working!, I tried all i could to blow it up, nothing, tried checking out, different browsers, etc, so I think its great.

One question though, are my URLs supposed to have a manufactures ID at end?

here is a sample link;

 

https://store.shoptangerine.com/rebel-yell-teesfootball-blue-p-424.html?manufacturers_id=48

 

Can someone just tell me if the "?manufacturers_id=48" part after my html url is normal????? I do not think it should say this, but just wondering.

Link to comment
Share on other sites

Can someone just tell me if the "?manufacturers_id=48" part after my html url is normal????? I do not think it should say this, but just wondering.

 

I have noticed if I goto links from 'all_products.php' or from browse by category, the product urls are straight up html, looking nice.

But when I shop via manufacturer is when it goes to the weird html url with manufacturer_id at end (after html) how can I stop this?

Link to comment
Share on other sites

Another thing

 

So far working, but I have a few styles that have short words in their name, like 'los angeles blue' and the url says store.com/angeles-blue.html So I went to the settings in the seo admin, to filter short words, changed it to '1' and still not showing the 'los' part.

ANy thoughts (and thoughts on my manufacturers_id showing on url's?)

Thanks

Link to comment
Share on other sites

I just installed and it seems to work very nice.

 

Thansk a lot for such a great addon !

 

I have one problem though. The admin allways displayes this in the top

 

// Function to reset SEO URLs database cache entries // Ultimate SEO URLs v2.1 function tep_reset_cache_data_seo_urls($action){ switch ($action){ case 'reset': tep_db_query("DELETE FROM cache WHERE cache_name LIKE '%seo_urls%'"); tep_db_query("UPDATE configuration SET configuration_value='false' WHERE configuration_key='SEO_URLS_CACHE_RESET'"); break; default: break; } # The return value is used to set the value upon viewing # It's NOT returining a false to indicate failure!! return 'false'; }

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/shop/admin/includes/functions/general.php:1321) in /var/www/html/shop/admin/includes/functions/sessions.php on line 67

 

Anyone knows what goes wrong ?

Link to comment
Share on other sites

I also get this error when i try and change something in the admin and then push Update

 

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/shop/admin/includes/functions/general.php:1321) in /var/www/html/shop/admin/includes/functions/general.php on line 22
Link to comment
Share on other sites

I have all the need requirements

Latest PHP, Apache 2.2, mod_rewrite, etc...

 

When I install the SEO my index.php is displayed a one complete screen of TEXT... If I look at the generated HTML source through the browser, everything looks very clean and I can easily see and read the SEO code. But the HTML output is solid wall to wall text.

 

Any suggestions?

 

Henry

My Contributions

 

Henry Smith

Link to comment
Share on other sites

Hi, by the way... great contrib (if only I get this thing working)

I did anything what I read in the install.htm...

 

But still get the following message (just an example, i get an error with every link I click):

 

The requested URL /flaggen.de.kf/-signalflaggen-c-728.html was not found on this server.

 

What am I doing wrong ? I am still trying this on my local machine before damaging the real shop.

Apache/2.0.53 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4 Server at localhost Port 80

 

I generated an htaccess-File with the following content:

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /flaggen.de.kf/

 

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}

 

Any Ideas ???

 

Best regards

Holger

Link to comment
Share on other sites

Major problem with redirects after adding item into shopping cart and then clicking "Continue Shopping".

 

What is happening is that I can add an item into the shopping cart, which I have three options after that which are: Update Cart, Continue Shopping, and Checkout.

 

If I click on the "Continue Shopping" it should take me back to the previous category I was in, however, it just sits there, and reviewing my Apache log file, I can see that it is doing a continous 301 redirect because the "Continue Shopping" is not using the redirect link but the actual category.

 

Here is a snipped from my log file:

 

www.intotheoven.com - - [02/Mar/2006:12:06:48 -0600] "GET /index.php?products_id=197 HTTP/1.0" 301 5801 "http://www.intotheoven.com/shopping_cart.php" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

www.intotheoven.com - - [02/Mar/2006:12:06:48 -0600] "GET /index.php?products_id=197 HTTP/1.0" 301 5801 "http://www.intotheoven.com/shopping_cart.php" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

www.intotheoven.com - - [02/Mar/2006:12:06:49 -0600] "GET /index.php?products_id=197 HTTP/1.0" 301 5801 "http://www.intotheoven.com/shopping_cart.php" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

 

I have tried this with both Firefox and IE 7.0.

 

Any insights, this is almost the last thing I need to fix before going live.

 

Thanks!

Link to comment
Share on other sites

Hi,

 

Quick question..how do you create a .htaccess file?

 

Thanks.

 

This is my .htaccess file that I have in my 'admin' directory of OSCommerce....

 

--BEGIN--

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

--END--

 

But the more critical pieces are in your configuration and authentication files....

 

ie: Here are the lines from my Apache httpd.conf (or ssl.conf depending on your version of apache). This is in my virtualhost directive:

 

--BEGIN--

<VirtualHost www.intotheoven.com:443>

 

# General setup for the virtual host

DocumentRoot "/pathtohtmldocs/html/www.intotheoven.com"

ServerName www.intotheoven.com:443

ServerAdmin [email protected]

ErrorLog logs/www.intotheoven.com-error_log

Customlog logs/www.intotheoven.com-access_log combined

#TransferLog logs/www.intotheoven.com-ssl_access_log combined

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /pathtocerts/ssl.crt/www.intotheoven.com.crt

SSLCertificateKeyFile /pathtocerts/ssl.key/intotheoven.key

SSLCertificateChainFile /pathtocerts/ssl.crt/sf_issuing.crt

<Location /admin>

AuthType basic

AuthName "administrative area"

AuthUserFile /passwordfilepath/htpasswd_intotheoven

Require valid-user

</Location>

#

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

#

CustomLog logs/www.intotheoven.com-ssl_request_log \

"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

--END--

 

Notice the "Location" section, this is where it checks for authentication.

 

To create the htpasswd_intotheoven, use the htpasswd or htpasswd2, again depending on your apache.

Link to comment
Share on other sites

This is my .htaccess file that I have in my 'admin' directory of OSCommerce....

Notice the "Location" section, this is where it checks for authentication.

 

To create the htpasswd_intotheoven, use the htpasswd or htpasswd2, again depending on your apache.

 

Thanks, it works now. Does anybody know what the best configuration is to get the best results? Is default the best or is it better to change the settings?

 

Thanks!

Link to comment
Share on other sites

I figured it out, I had to add a rewrite rule into my .htaccess file...

 

Here is a copy of my .htaccess file:

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteCond %{REQUEST_URI} !/index\.php # This is the line added

 

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}

 

 

Major problem with redirects after adding item into shopping cart and then clicking "Continue Shopping".

 

What is happening is that I can add an item into the shopping cart, which I have three options after that which are: Update Cart, Continue Shopping, and Checkout.

 

If I click on the "Continue Shopping" it should take me back to the previous category I was in, however, it just sits there, and reviewing my Apache log file, I can see that it is doing a continous 301 redirect because the "Continue Shopping" is not using the redirect link but the actual category.

 

I have tried this with both Firefox and IE 7.0.

 

Any insights, this is almost the last thing I need to fix before going live.

 

Thanks!

Link to comment
Share on other sites

Well I spoke too quick....

 

It appears to be re-writing one level deep but not off the home page.

 

If someone could take a look at the homepage at: http://www.intotheoven.com/

 

I would appreciate it...

 

You can clearly see that if you roll the mouse over the Text, image or "Details" buttons, all the URLs are rewrittne and the "Continue Shopping" button will refer you back to where you started from the cart.

 

However, on the home page, if you roll the mouse over the "Add to cart" button it has it's URL rewritten but not using the proper tag information and the "Continue Shopping" from the cart gets confused if you add it from there.

 

Examples:

SEO Turned off:

Details button link: http://www.intotheoven.com/product_info.php?products_id=64

Add to cart link: http://www.intotheoven.com/index.php?actio...&products_id=64

 

SEO Turned on:

Details button link: http://www.intotheoven.com/americolor-soft...white-p-64.html

Add to cart link: http://www.intotheoven.com/index.php?produ...&action=buy_now

 

Link from "Continue Shopping" after being referred from a link that works:

http://www.intotheoven.com/americolor-soft...white-p-64.html

 

Link from "Continue Shopping" after being referred from a link that puts the system in an infinite loop:

http://www.intotheoven.com/index.php?products_id=64

 

That link just puts the system in a continuos redirect. Sample error from log file:

intranet.one-stop.com - - [04/Mar/2006:01:35:48 -0600] "GET /index.php?products_id=64 HTTP/1.1" 301 5771 "http://www.intotheoven.com/shopping_cart.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8"

Link to comment
Share on other sites

Help! - Having a Paypal problem after installing Ultimate SEO 2-2.1d

 

I accept Paypal on my OSc store, and ever since installing Ultimate SEO 2-2.1d a few days ago, I have been noticing that whenever someone places an order, I receive the correct payment amount, but there is no "order" created in my database. I am able to see the new "customer", but have no idea what they are paying me for. When I email my new customer to inquire, it seems as though they did their part and followed through with the order creation. I also accept credit cards, but don't seem to have the same problem there. I had the same problem a few months ago, but another member advised me as to the correct settings on the Paypal side. It worked fine from that point up until I installed the SEO contribution. Here are the settings as I currently have them set:

 

 

go to profile

 

website payment preferences and select auto return to on

 

https://st63.startlogic.com/~specopst/shop/...out_process.php

 

the next buttons are set this way:

 

off

off

on

off

 

 

 

Question: Does the SEO contribution change how I need to configure my auto return URL in Paypal?

 

 

 

Thanks in advance.

Link to comment
Share on other sites

Help! - Having a Paypal problem after installing Ultimate SEO 2-2.1d

 

I accept Paypal on my OSc store, and ever since installing Ultimate SEO 2-2.1d a few days ago, I have been noticing that whenever someone places an order, I receive the correct payment amount, but there is no "order" created in my database. I am able to see the new "customer", but have no idea what they are paying me for. When I email my new customer to inquire, it seems as though they did their part and followed through with the order creation. I also accept credit cards, but don't seem to have the same problem there. I had the same problem a few months ago, but another member advised me as to the correct settings on the Paypal side. It worked fine from that point up until I installed the SEO contribution. Here are the settings as I currently have them set:

go to profile

 

website payment preferences and select auto return to on

 

https://st63.startlogic.com/~specopst/shop/...out_process.php

 

the next buttons are set this way:

 

off

off

on

off

Question: Does the SEO contribution change how I need to configure my auto return URL in Paypal?

Thanks in advance.

 

I'm Having same problem except mine happend with a credit card transaction (authorize.net). I got a merchant email receipt sent to my email address when i opened it everything was blank. The name field, billing address, shipping address even email. It only said that payment was sent for this amount. When i go into admin it says i have 2 orders before i click on the order link. But when i click it I only see 1. When i check the customers link i dont have any new customers in there. I have no idea who paid me or an address or email to contact them. Is there anywhere in oscommerce i can check to see who placed the order? which file does oscommerce store customer info and order info in? Thank you

Link to comment
Share on other sites

Okay, going crazy here searching these boards trying to get this contribution to work.

It seems everyone else has it working, so I must be missing something.

 

I installed the "Ultimate SEO URLs 2.1d" version. When I click on a product link, I get an "Object Not Found!" error.

 

My .htaccess is set properly to the correct directory /store/ I went through the process precisely. So what am I missing that is bringing this error instead of the product page itself?

 

Page can be found here: Client's Site.

 

Please advise. Assistance is greatly appreciated.

 

Thanks,

Elizabeth

Link to comment
Share on other sites

Okay, going crazy here searching these boards trying to get this contribution to work.

It seems everyone else has it working, so I must be missing something.

 

I installed the "Ultimate SEO URLs 2.1d" version. When I click on a product link, I get an "Object Not Found!" error.

 

My .htaccess is set properly to the correct directory /store/ I went through the process precisely. So what am I missing that is bringing this error instead of the product page itself?

 

Page can be found here: Client's Site.

 

Please advise. Assistance is greatly appreciated.

 

Thanks,

Elizabeth

 

i had that problem too, its gotta be your .htaccess. Plus make sure your not on a shared ssl that will give you problems too.

Link to comment
Share on other sites

QUOTE(auteur @ Mar 7 2006, 01:21 PM)

 

Okay, going crazy here searching these boards trying to get this contribution to work.

It seems everyone else has it working, so I must be missing something.

 

I installed the "Ultimate SEO URLs 2.1d" version. When I click on a product link, I get an "Object Not Found!" error.

 

My .htaccess is set properly to the correct directory /store/ I went through the process precisely. So what am I missing that is bringing this error instead of the product page itself?

 

Page can be found here: Client's Site.

 

Please advise. Assistance is greatly appreciated.

 

Thanks,

Elizabeth

 

 

i had that problem too, its gotta be your .htaccess. Plus make sure your not on a shared ssl that will give you problems too.

 

It has to do with .htaccess

 

I had the same problem..... took me pretty long but finally i solved it....

 

 

 

mod_rewrite was deactivated...

i even had to upgrade to a bigger hostingplan (my site is hosted @ hosteurope.de )

 

but now it works great ...

 

thank u for this great contrib ... :thumbsup:

Link to comment
Share on other sites

Hello.

 

I have this installed on 6.2 Creloaded. My questions is it seems like it is working, and I did not make any changes to the html_output.php.

 

Is this all I need to remove the Session ID's SE from Google, MSN & Yahoo when the come to dance on my site? I see something called spiders.txt. Do I require this file?

 

SI

Link to comment
Share on other sites

Hello,

 

I've installed this contribution, great job I must say...

 

My sotre is Hebrew based and unfortunately the static urls are messed up, Hebrew Characters are not translated the right way and I get unknown text instead of Hebrew text in urls. for example:

 

http://www.volt.co.il/store/ֳ ֳ...459;?-c-11.html://http://www.volt.co.il/store/ֳ...459;?-c-11.html://http://www.volt.co.il/store/ֳ...459;?-c-11.html

 

any idea how to make the url right? my store is running on charset "windows-1255"

 

Thank you,

Eyal.

Link to comment
Share on other sites

Hello,

 

I've installed this contribution, great job I must say...

 

My sotre is Hebrew based and unfortunately the static urls are messed up, Hebrew Characters are not translated the right way and I get unknown text instead of Hebrew text in urls. for example:

 

http://www.volt.co.il/store/ֳ ֳ...459;?-c-11.html://http://www.volt.co.il/store/ֳ...459;?-c-11.html://http://www.volt.co.il/store/ֳ...459;?-c-11.html

 

any idea how to make the url right? my store is running on charset "windows-1255"

 

Thank you,

Eyal.

 

Fixed that, thank you. Just removed the utf8 translation in class file.

Link to comment
Share on other sites

I have these contibutions installed on my site - Master products 1.1.5 by Johnson, Header Tags & CCGV. Recently I installed SEO URLS. Everything works fine EXCEPT the REDEEM button when I click I just get logged out and I see the logon box page of my site.

 

Also if I disable SEO URLs site fails to display category & product pages - giving error - page not found. What i mean is the disable is not working for SEO URLs.

 

But if I uninstall SEO URLs there is no problem with CCGV at all.

 

Please help

 

Thanks

Disable "Output W3C valid URLs (parameter string)?" works for me.

 

Basically, everything is fine except this "REDEEM" button. I don't know what this "Output W3C valid URLs (parameter string)?" does, but seems it addes the "&" ruins the url.

 

Anyway, I spent some time to figure out the problem, and when I set the "Output W3C valid URLs (parameter string)?" to false, the urls are roll back like before, and the CCGV works fine now.

 

I believe this mod works 100% fine now except this little problem.

 

I'm having the same problem dilipghadi referances, in that clicking on the "Redeem" button with Ultimate SEO enabled redirects me to login.php. If I hit the back button, checkout_payment.php has the coupon info entered correctly. No redirect if Ultimate SEO is disabled. Anyone know how to avoid this redirect? I'm not seeing what file or setting "Disable "Output W3C valid URLs (parameter string)" would be disabled at, either.

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