Jump to content
Sign in to follow this  
BlueYon

Seach Engine Friendly URL Support

Recommended Posts

i'm trying to install this and having the problem that after turning on search engine safe URLS and clicking a product it is going to the correct url but just 404ing. Is there something i need to enable in either httpd.conf or php.ini?

 

anyone have a solution to this?


:wq!

Share this post


Link to post
Share on other sites

I am having issues with forced cookies. When I set Configuration>Sessions>Force Cookie Use to true, a cookie usage warning saying that the browser is not accepting cookies (which it is) gets returned.

I understand from the docs that forced cookies are a must and consequently cannot test SEO on our site.

Share this post


Link to post
Share on other sites
i'm trying to install this and having the problem that after turning on search engine safe URLS and clicking a product it is going to the correct url but just 404ing. Is there something i need to enable in either httpd.conf or php.ini?

 

anyone have a solution to this?

 

 

Have you got mod rewrite enabled?

 

This is the module set I am running from httpd.conf:

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule security_module modules/mod_security.dll

 

is it the

LoadModule rewrite_module modules/mod_rewrite.so

line that what you meant or am i missing something elsewhere? Also can you confirm what you are supposed to have in the .htaccess file. If it matters I am running Apache 2 on Windows 2000.

 

Thanks for the help.


:wq!

Share this post


Link to post
Share on other sites
httpd.conf is okai.

check the .htaccess file

 

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

 

Thats my .htaccess. Look ok?


:wq!

Share this post


Link to post
Share on other sites

@All

 

I've made all the neccessary amendments according to the install docs, the site is still working okay but the URLs are as before e.g:

 

http://timexpress-wholesale.de/product_inf...4/products_id/1

 

I have noticed info in the forum concerning header tags etc. Is this a must in order to get SEF to work??

If not, any clues as to what may be wrong?

 

Ta!

Steve

Share this post


Link to post
Share on other sites

Quick update: Meta Tag Controller V1.0 has been installed and works fine. Unfortunately SEO is still having no impact. Any help would be greatly appreciated.

 

Steve

Share this post


Link to post
Share on other sites
Dude your newest contribution v1.1 is the BOMB!  I am not having a single issue now with this new code!  Before I was having server timeouts or something and now nothing is faulting!  Thank you for such a great contribution!  This will no doubt improve search engine rankings!

 

MLHmptn

 

 

HELP!

 

I am installing the Seach Engine Friendly URL V1.8 right now and it is late and I am hungry but too anxious to finish this soon!

 

I am confused here: where should I put it exactly?

 

====

Step #6 - In In /admin/includes/functions/general.php

Before code } (around line 956) add this code

 

@unlink(DIR_FS_CACHE . 'url.cache');

 

Note: This should be the at the end of the tep_reset_cache_block function

 

=====> I found TWO OF the tep_reset_cache_block function so which one?

 

And before which bracket?

 

------Copy and paste from the /admin/includes/functions/general.php

 

====>*here?* Please point to us which location?

 

 

if (USE_CACHE == 'true') {

tep_reset_cache_block('categories');

tep_reset_cache_block('also_purchased');

*here?* }

*here?*}

 

function tep_remove_product($product_id) {

$product_image_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");

$product_image = tep_db_fetch_array($product_image_query);

 

$duplicate_image_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " where products_image = '" . tep_db_input($product_image['products_image']) . "'");

$duplicate_image = tep_db_fetch_array($duplicate_image_query);

 

if ($duplicate_image['total'] < 2) {

if (file_exists(DIR_FS_CATALOG_IMAGES . $product_image['products_image'])) {

@unlink(DIR_FS_CATALOG_IMAGES . $product_image['products_image']);

}

}

 

tep_db_query("delete from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'");

 

$product_reviews_query = tep_db_query("select reviews_id from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'");

while ($product_reviews = tep_db_fetch_array($product_reviews_query)) {

tep_db_query("delete from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$product_reviews['reviews_id'] . "'");

}

tep_db_query("delete from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'");

 

if (USE_CACHE == 'true') {

tep_reset_cache_block('categories');

tep_reset_cache_block('also_purchased');

*here?* }

*here?* }

Share this post


Link to post
Share on other sites

Thank God it works!

 

 

I put the @unlink(DIR_FS_CACHE . 'url.cache');

 

after the

 

====

Step #6 - In In /admin/includes/functions/general.php

 

 

 

if (USE_CACHE == 'true') {

tep_reset_cache_block('categories');

tep_reset_cache_block('also_purchased');

*I PUT IT HERE*

}

}

 

function tep_remove_product($product_id) {

$product_image_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");

$product_image = tep_db_fetch_array($product_image_query);

 

$duplicate_image_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " where products_image = '" . tep_db_input($product_image['products_image']) . "'");

$duplicate_image = tep_db_fetch_array($duplicate_image_query);

 

if ($duplicate_image['total'] < 2) {

if (file_exists(DIR_FS_CATALOG_IMAGES . $product_image['products_image'])) {

@unlink(DIR_FS_CATALOG_IMAGES . $product_image['products_image']);

}

}

 

tep_db_query("delete from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "'");

tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'");

 

$product_reviews_query = tep_db_query("select reviews_id from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'");

while ($product_reviews = tep_db_fetch_array($product_reviews_query)) {

tep_db_query("delete from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$product_reviews['reviews_id'] . "'");

}

tep_db_query("delete from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'");

 

if (USE_CACHE == 'true') {

tep_reset_cache_block('categories');

tep_reset_cache_block('also_purchased');

*not here you dummie* }

*neither here* }

 

 

===================

 

 

Now I got my products to look like these:

 

http://awaskemalangan.com/SAFETY-PRODUCTS/...E-TALKIE-WT440/

 

Well that's good enough!

 

Thankxxxx BlueYon your SEO Contrib really works!

 

ANybody here follows this topic anymore?

 

****

 

BlueYon: the mini bikes store is COOL!

 

BTW why not add some animation and some flip movie / views from different angles using Java Script that I contributed..

 

http://www.oscommerce.com/community/contributions,3473

 

Lively Shops!

 

*Suggestion: a flip movie of a dirtbiker darting and freestyling on air would be nice to

greet your visitors!:)

Share this post


Link to post
Share on other sites

How about some help for a small guy? There are a couple of postings a bit further up the page, I'd really appreciate some help.

Thanks,

Steve

Edited by sbla

Share this post


Link to post
Share on other sites
I am having issues with forced cookies. When I set Configuration>Sessions>Force Cookie Use to true, a cookie usage warning saying that the browser is not accepting cookies  (which it is) gets returned.

I understand from the docs that forced cookies are a must and consequently cannot test SEO on our site.

 

This usually means that your includes/configure.php file is correctly set up.

 

You should check the cookies path in that file.

Share this post


Link to post
Share on other sites
This usually means that your includes/configure.php file is correctly set up.

 

You should check the cookies path in that file.

 

Thanks for that Jenny,

An incorrect path was the first problem, also the fact that we were using a shared ssl certificate. Both are now sorted.

 

Are you using SEO? If so did you have any probs installing it?

 

Thanks,

Steve

Share this post


Link to post
Share on other sites
Thanks for that Jenny,

An incorrect path was the first problem, also the fact that we were using a shared ssl certificate. Both are now sorted.

 

Are you using SEO? If so did you have any probs installing it?

 

Thanks,

Steve

 

 

I've just done a clean install and it works well, there must be a conflict with one of the other contribs.

S

Share this post


Link to post
Share on other sites

Hi, I want to try to install this contribution and it ask me to replace my index.php

is there anyone know which code that i need to change inside index.php instead replacing the file because i have made some changing inside the index.php for other contribution.

 

 

Thank you,

 

 

Ricsen

Share this post


Link to post
Share on other sites
Hi, I want to try to install this contribution and it ask me to replace my index.php

is there anyone know which code that i need to change inside index.php instead replacing the file because i have made some changing inside the index.php for other contribution.

Thank you,

Ricsen

 

 

For this contribution the index.php has been merget together with product_info.php, ie. when you view the product detail page it is shown from index.php insted of from product_info.php as usuall.

 

Basically whats added in index.php are:

 

One extra conditional statement regarding product id and the code for showing the product details page.

 

Get a file compare tools and you can easily find the added code.

Edited by Jumping Rabbit

Share this post


Link to post
Share on other sites

Hi all,

 

Has anyone implemented this contrib in conjunction with the "Seperate pricing per customer" contrib?

 

I tried yesterday and had problems, SPPC was installed and working okay, this was then,installed on a completely different installation of OSC (same site but different sql database etc.). This worked fine but caused problems with SPPC, some of the probs could be fixed by changing GET to POST on SPPC. Other issues remained on the SPPC site even after uninstalling this and the db this was working from.

 

Thanks for any advice,

 

Steve

Share this post


Link to post
Share on other sites
Hi all,

 

Has anyone implemented this contrib in conjunction with the "Seperate pricing per customer" contrib?

 

I tried yesterday and had problems, SPPC was installed and working okay, this was then,installed on a completely different installation of OSC (same site but different sql database etc.). This worked fine but caused problems with SPPC, some of the probs could be fixed by changing GET to POST on SPPC. Other issues remained on the SPPC site even after uninstalling this and the db this was working from.

 

Thanks for any advice,

 

Steve

 

Any seo/sef contrib might cause problems with other mods working on cpath and/or product_id parameters...

 

If you are aware of this, you should be able to make the relevant changes where needed.

Share this post


Link to post
Share on other sites

I have installed this contribution, and everything looks/works great, except when I go to add a product to my cart. I can get the product_info to come up, and does the rewrite just fine, with a URL that looks like:

 

https://www.mydomain.com/Name-Stool/

 

BUT then when I click on "Add to Cart", I get a 404 Not Found on a URL that looks like this:

 

https://www.mydomain.com/product_info.php/p...ion/add_product

 

 

So it seems like the rewrite is working in the first case, but not in the second. Has anyone experienced this same problem, and know a fix????

 

 

Thanks so much,

peimei

:blink:

Share this post


Link to post
Share on other sites
BUT then when I click on "Add to Cart", I get a 404 Not Found on a URL that looks like this:

 

https://www.mydomain.com/product_info.php/p...ion/add_product

So it seems like the rewrite is working in the first case, but not in the second. Has anyone experienced this same problem, and know a fix????

 

Let me clarify on my problem with "adding to cart", since the link above has abbreviated itself. The form action creating the 404 for "add to cart" is a URL that looks like this (mouse over the link below to view the full link):

 

https://www.mydomain.com/product_info.php/p...ion/add_product

Share this post


Link to post
Share on other sites
sorry the install say insert "@unlink(DIR_FS_CACHE . 'url.cache');"

 

dahui

 

Hi dahui

yes the actual position is :

 

            @unlink(DIR_FS_CACHE . $cached_file);
         }    
       }
       break;
     }
   }
@unlink(DIR_FS_CACHE . 'url.cache');
 }

 

but if you get a misconfig error message, it's probably because you have not enabled the cache in the admin section yet

Share this post


Link to post
Share on other sites

Can someone please post sql queries. It's not working for me through the install-sef.php. It just freezes and doesn't run any queries, no table is created etc.. I want to just upload it manually through mysql admin, but can't find the actual file with those queries.

 

Thank you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×