Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ULTIMATE Seo Urls 5 - by FWR Media


Recommended Posts

You have to go into your show admin under configuration >> Ultimate seo urls set the rewrite method to: rewrite

 

Also make sure you have added the required code to your htaccess file

Link to comment
Share on other sites

  • 2 weeks later...

Hi, I'd be very grateful if anyone can help point me in the right direction! My problem is that having installed this addon when I click on either a product or a category I get the 'Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.'

 

Having searched through the thread (page 168 seems most relevant to my problem) the advice given was to check my configure.php file (I have listed some of it below) but as far as I can tell (which quite frankly isn't a lot) it appears to be ok.

 

I have tried altering as many of the variables within the administration side as possible but to no avail (given that no one else is having problems I know it's my installation and not the addon)

 

I have also double checked my changed files (using winmerge) with the originals and the installation notes and I have been unable to find any obvious problems - all new code is there and no characters removed by mistake.

 

Any help on where to start troubleshooting would be most appreciated

 

Iain

 

Below is an excerpt of my configure.php file:

 

 

define('HTTP_SERVER', 'http://zezez.co.uk');

define('HTTPS_SERVER', 'http://zezez.co.uk');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'zezez.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'zezez.co.uk');

define('HTTP_COOKIE_PATH', '/.//');

define('HTTPS_COOKIE_PATH', '/.//');

define('DIR_WS_HTTP_CATALOG', '/.//');

define('DIR_WS_HTTPS_CATALOG', '/.//');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/zezezcou/public_html/./');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

Re the above post - it was indeed the configure.php file. If you have similar problems to what I had then have a read of the following article:

 

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

 

which describes what your configure file should look like. I have never modified mine so I don't know why it was set up incorrectly but the problem was fixed by editing any lines which looked like this:

 

define('DIR_WS_HTTP_CATALOG', '/.//')

 

and changing too:

 

define('DIR_WS_HTTP_CATALOG', '/');

 

Hope this may help someone!

Link to comment
Share on other sites

Apologies if this has been answered, but I can't find it, plus after trying to get everything I need for my site under osCommerce for about 6 weeks now I can't take it anymore. Seems to be one thing after another. This is my setup:

 

OsCommerce 2.3.1

Ultimate_Seo_Urls_5_PRO_r205

Easy Populate

USPS Restrict Methods

QTPro with Perfect attributes

 

I had everything working but needed the ability the assign quantities to attributes. I couldn't get QTPro to work so I hired somebody to do it thinking I would be golden.

 

Everything seems to work, but when I click on any of the catageories I get a page not found. I think it is a matter of a .htaccess entry, but I have no idea what that entry is. I disagreed with the installer that is is SEO URLS5, well it probabaly is, but I hired them to install the module and work around this issue bc I had the same problem. I am posting this before I have heard back from the installer and in case I have to fix it myself bc this is going on way too long.

 

.htaccess

# For security reasons, Option followsymlinks cannot be overridden.

#Options +FollowSymLinks

Options +SymLinksIfOwnerMatch

DirectoryIndex index.php index.html index.htm

RewriteEngine On

 

RewriteCond %{ENV:REDIRECT_STATUS} ^$

RewriteRule ^catalog(/(.*))?$ http://www.domain.com/$2 [R=301,L]

RewriteCond %{HTTP_HOST} ^(domain\.com)$ [NC]

RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]

RewriteRule ^(folders|to|exclude)(/.*)?$ - [L]

RewriteCond %{ENV:REDIRECT_STATUS} ^$

RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]

RewriteRule ^(.*)$ /catalog/$1 [QSA,L]

# Add trailing slash to directories within catalog

# This does not expose the internal URL.

RewriteCond %{SCRIPT_FILENAME} -d

RewriteRule ^catalog/(.*[^/])$ http://www.doamin.com/$1/ [R=301]

<IfModule mod_rewrite.c>

# Redirect index.php Requests

# ------------------------------

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

RewriteCond %{THE_REQUEST} !/system/.*

RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

</IfModule>

<IfModule mod_rewrite.c>

RewriteBase /catalog/

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]

# Articles contribution

RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]

# Information pages

RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]

# Links contribution

RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]

# Newsdesk contribution

RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]

</IfModule>

RewriteBase /catalog/

RewriteCond %{QUERY_STRING} cPath=[0-9_]+&products_id=([0-9_]+) [NC,OR]

RewriteCond %{QUERY_STRING} manufacturers_id=[0-9_]+&products_id=([0-9_]+) [NC]

RewriteRule (.*) product_info.php?products_id=%1 [R=301,L]

 

Any advice would be deeply appreciated

Link to comment
Share on other sites

I fixed it. Somehow (it could have been me, but I had my htaccess for path_rewite, so I am not so sure, especially since it work before...anyway) SEO URLs 5 was set to standard. I set it to path_rewrite and all is good in the world. I hope I haven't spoken to soon.

Link to comment
Share on other sites

Hello,

 

I am trying to add a "keyword filter" to sub-categories BUT the ULTIMATE Seo Urls 5 is removing the "space" between keywords. It doesn't do it for advanced_search_results.php so must be something specific to index.php. Perhaps I could ask the Seo Urls module to ignore certain GET variables e.g. filter_keywords? Any ideas most welcome.

 

Regards,

Simon

Link to comment
Share on other sites

https in category links

 

I've got this installed an appears to work well, however, one thing I noticed is that all category links normally begin with http as they should, but once you enter a secured (https) area, the category links then remain secured (https) until you visit a nonsecured area that then flips them back. Why? And how can this be eliminated? I've examined the tep_href_link function, but haven't found what's causing it in the category links because the same function used for other links does not result in the same result (those work okay).

 

Thanks!

Link to comment
Share on other sites

Does anybody has a solution for this problem?

 

After the installation of this contribution somehow current language icon disappears from Languages box. See the attachment.

Can it be restored, and how?

 

Andrej

Link to comment
Share on other sites

Hi

 

I have installed this contribution and it is the best!

 

I was wondering if it is possible to make a slight change, when i click on a sub-category the url shows something like: mysite.com/category-subcategory

I wanted to change it to make it like this

 

mysite.com/category/subcategory

 

Anyone know if that's possible and how to do it?

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

 

 

 

mysite.com/category/subcategory

 

Anyone know if that's possible and how to do it?

 

Have you tried the path based URIs in admin? path based uses forward slash as a separator.

Link to comment
Share on other sites

Does anybody has a solution for this problem?

 

There is a dedicated file replacement for the languages in the additional uploads directory of the download.

Link to comment
Share on other sites

I use both english and spanish:

 

the defualt is spanish, so when pages loads its in spanish - when i change languages from the drop down to say english, i get index.php?language=en

 

now whilst thats in the browser url i clcik special, and see. specials.php/en

resulting in "No input file specified."....

 

for everything else its fine. Whats going on here, tralled trought about 150 pages... you guys are the pros whats the score?????

Link to comment
Share on other sites

Hello,

 

i upgraded the sqlite cache system to sqlite3. From my tests it works also on php 5.4.

 

Here the changes:

 

On ultimate_seo_urls/cache_system/sqlite.php

 

find:

 


protected static function createDatabase() {
  if ( !is_readable( self::$sqlite_db_file ) ) {
	self::$db = new SQLiteDatabase( self::$sqlite_db_file, 0666, $error )
	or trigger_error( 'Failed: ' . $error, E_USER_WARNING );
	self::createTables();
  } else {
	self::$db = new SQLiteDatabase( self::$sqlite_db_file, 0666, $error )
	or trigger_error( 'Failed: ' . $error, E_USER_WARNING );
  }
}

 

change to:

 

protected static function createDatabase() {
  if ( !is_readable( self::$sqlite_db_file ) ) {
	self::$db = new SQLite3( self::$sqlite_db_file, 0666, $error )
	or trigger_error( 'Failed: ' . $error, E_USER_WARNING );
	self::createTables();
  } else {
	self::$db = new SQLite3( self::$sqlite_db_file, 0666, $error )
	or trigger_error( 'Failed: ' . $error, E_USER_WARNING );
  }
}

 

and around line 128 find:

 


$replacements = array( sqlite_escape_string( self::$cache_name ), sqlite_escape_string( $rawdata ), date( "Y-m-d H:i:s" ) );
	  $query = str_replace( $targets, $replacements, $this->insert_query );
	  self::$db->query( $query );
	}

 

change to:

 

$replacements = array( self::$db->escapeString( self::$cache_name ), self::$db->escapeString( $rawdata ), date( "Y-m-d H:i:s" ) );
	  $query = str_replace( $targets, $replacements, $this->insert_query );
	  self::$db->exec( $query );
	}

 

around line 168 find:

 

self::$db->query( 'DELETE FROM usu_cache' );
self::$db->query( 'VACUUM usu_cache' );

 

change to:

 

self::$db->exec( 'DELETE FROM usu_cache' );
	self::$db->exec( 'VACUUM usu_cache' );

 

at the end find:

 

self::$db->query( $create_query );
}
 } // end class

 

change to:

 


self::$db->exec( $create_query );
   }
 } // end class

 

 

and on ultimate_seo_urls/main/usu5.php

 

find on line 308:

 

$row = $result->fetch();

 

Change to:

 

$row = $result->fetchArray();

 

Hope it can help

Edited by acidvertigo
Link to comment
Share on other sites

I use both english and spanish:

 

the defualt is spanish, so when pages loads its in spanish - when i change languages from the drop down to say english, i get index.php?language=en

 

now whilst thats in the browser url i clcik special, and see. specials.php/en

resulting in "No input file specified."....

 

for everything else its fine. Whats going on here, tralled trought about 150 pages... you guys are the pros whats the score?????

 

You seem to be using the standard language box code which results in requests containing ( index.php?language=en ).

 

The download has new language box code which can be found in the additional_uploads directory. there are two versions .. one for 2.2 and one for 2.3.

 

Hope that helps.

Link to comment
Share on other sites

Hello,

 

i upgraded the sqlite cache system to sqlite3. From my tests it works also on php 5.4.

 

 

Hope it can help

 

Thanks for sharing.

Link to comment
Share on other sites

Have you tried the path based URIs in admin? path based uses forward slash as a separator.

 

Thanks for the tip, it works.

Also I noticed that the two other uri formats (rewrite and

path_rewrite) don't work for me. When using them pages load as 404 not found. Any ideas?

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

Thanks for the tip, it works.

Also I noticed that the two other uri formats (rewrite and

path_rewrite) don't work for me. When using them pages load as 404 not found. Any ideas?

 

I think you may need to read the instructions again .. documentation/operation.htm

 

If the rewrite options are not working then it's the server settings ( e.g. no mod_rewrite ) or .htaccess does not have the required code ( I am assuming a *nix server ).

Edited by FWR Media
Link to comment
Share on other sites

Ultimate Seo Urls 5 PRO for osc 2.3.1

 

When I have "Enable multi language support" set to true, I get the wrong url when I press the button English it looks like this, see below (I have Swedish as default and I write MY with big letters so that it becomes easier to see the difference)

 

 

http://MYwebshopadress.eu/webshopadress.eu//index.php/en

 

Not Found

The Requested URL /webshopadress.eu/index.php/en was not found on this server.

 

it looks like it takes the URL twice, but the middle one is shorter,

assumes that it should be as follows but I dont know, http://MYwebshopadress.eu/index.php/language/en !?!?

 

 

 

I have the following settings in configure.php

 

 

define('HTTP_SERVER', 'http://mywebshopadress.eu');

define('HTTPS_SERVER', 'http://mywebshopadress.eu');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

 

 

 

and if I change the configure.php with www (see below) now it works with Enable multi-language support, but now customers can not log on if they are using internet explorer but it works with firefox and google chrome.

 

 

define('HTTP_SERVER', 'http://www.mywebshopadress.eu');

define('HTTPS_SERVER', 'http://www.mywebshopadress.eu');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

 

Now, the address looks like the following when I click on change language after the change in configure.php

Swedish: http://www.mywebshopadress.eu/index.php

English: http://www.secuimport.eu/index.php/en

 

 

 

 

htaccess is as follows

# If you are getting errors you may need to comment this out like ..

# Options +FollowSymLinks

Options +SymLinksIfOwnerMatch

<IfModule mod_rewrite.c>

RewriteEngine On

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

# Change RewriteBase using the instructions above

RewriteBase /

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]

# Articles contribution

RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]

# Information pages

RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]

# Links contribution

RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]

# Newsdesk contribution

RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]

RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]

</IfModule>

 

 

Hope any one can help me as soon as possible!

Link to comment
Share on other sites

I've been using the USU contrib for awhile now. I think I may have discovered a glitch in the multi-language contribution - rather an exception that is not caught that can cause serious effects.

When the second language has a blank products_name (say a mistake was made on entering the product in admin), the category will not load, and the product info page also spits out a non-valid url. Unless there is a workaround im unaware of, i think the best way would be perhaps to check in page_modules/product_info.php if the products_name doesnt exisit - do a second query with the default language. I havent got this working yet though - my sql programming skills are still improving =) I did get something simular working in /catalog/product_info.php to display the default language to the user, when their language doesnt exist.

 

I could, of course, just check every item in my database - but that would take quite awhile. Also, it wouldnt stop further bad entries made in admin, unless i change admin/categories.php to force it to populate the second language in the sql.

 

Thanks again for the contrib!

Link to comment
Share on other sites

Hi Robert,

 

I've just installed USU 5 PRO r205 on my new OSC 2.3.1 shop. I noticed no issues anyway my shop it is still under development, so I just have the OSC products and categories.

 

I was reading the thread (it's quite long and I still haven't read it all), but I noticed that since the last module update you made, there have been some fixes here in the forum, so I'm wondering what is important to fix over the r205 version... Do you plan to release an official update?

 

Thanks for the hard work developing the contribution and all the support you give here in the forum.

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