Jump to content



Latest News: (loading..)

* * * * - 10 votes

ULTIMATE Seo Urls 5 - by FWR Media


  • Please log in to reply
3897 replies to this topic

#3581   zipicip

zipicip
  • Members
  • 59 posts
  • Real Name:Zip

Posted 01 February 2012 - 06:38 AM

Hello.

I have a question .....

ultimate_seo_urls5/includes/usu_general_functions

This is the original function

  function usu_cleanse( $value ) {
		return preg_replace( '@[^a-z0-9_]@i', '', $value );
  }

I need [] because I use query array like gender[]=male&gender[]=female
And also I need "-" character because for example http://www.domain.com/product_info.php?products_id=6770&utm_campain=zz-cc it redirect to
http://www.domain.com/products-name-p-6770.html?utm_campain=zzcc and it removes the - character from the query

It is safe to change function to?

  function usu_cleanse( $value ) {
	return preg_replace( '@[^a-z0-9_ \%\+\[\]-]@i', '', $value );
  }

I added [], -

#3582   OSC_FREAK

OSC_FREAK
  • Members
  • 29 posts
  • Real Name:osc_freak
  • Gender:Male
  • Location:Netherlands

Posted 01 February 2012 - 01:51 PM

I use ULTIMATE Seo Urls 5 several years now and i want to know if it's somehow possible to exclude/hide the products_id number in the URL? I've noticed that alot of urls found on google are linked to other product pages after updating/uploading products.

#3583   bassmaga

bassmaga
  • Members
  • 29 posts
  • Real Name:Kamil
  • Gender:Male
  • Location:Poland

Posted 01 February 2012 - 09:17 PM

View PostFWR Media, on 06 March 2011 - 06:48 AM, said:

Just to confirm for other users.

There was no bug in USU5 PRO, in this case the users includes/configure.php file was wrong.

DIR_FS_CATALOG must contain the full path to the root of the shop installation.

Hi,

I have error
strpos(): Empty delimiter in /raid0/www/.../catalog/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 121

DIR_FS_CATALOG contain the full path to the root

any solutions please

#3584   OSC_FREAK

OSC_FREAK
  • Members
  • 29 posts
  • Real Name:osc_freak
  • Gender:Male
  • Location:Netherlands

Posted 02 February 2012 - 02:00 AM

I've upgraded ULTIMATE Seo Urls 5 to Ultimate Seo Urls 5 PRO r205 now my website went blank. I've changed all coding back to ULTIMATE Seo Urls 5 and reuploaded the ultimate_seo_urls5 file: still blank:  now what to do?

Edited by OSC_FREAK, 02 February 2012 - 02:04 AM.


#3585   Jeff Swenson

Jeff Swenson
  • Members
  • 4 posts

Posted 06 February 2012 - 04:30 PM

hey there, i am having some issues,  i could use some help

having issues with getting all my links to rewrite.
could i get some assistance?

i have it partially working on my main live site, but the catagories are not rewriting: https://www.irepairworks.com/products.php?cPath=25_29
products are working : https://www.irepairworks.com/iphone-3gs-diagnostic-service-p-94.html

here is following .httaccess:
------------------------------------------------

Options +FollowSymLinks

<IfModule mod_rewrite.c>



RewriteEngine on



RewriteCond %{HTTP_HOST} ^irepairworks\.com [NC]

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



RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]





# 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 ^iPhone-3g-Repair\.html$ /products.php?cPath=25_28 [L]
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>

#3586   geoffreywalton

geoffreywalton

    Contact me for Support

  • Community Sponsor
  • 8,032 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 07 February 2012 - 09:33 PM

Hi

Just did a fresh install and added modular SEO header and this contribution.

Works fine except on products containing  '®' (registered in case it snafus)

For example

Fat Grabbers® (180 caps) NEW SIZE!

URL generated ends

/catalog/product_info.php/fat-grabbers®-180-caps-new-size-p-158

and get this error message

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Replace non alpa numerics is set to true.

If I add a char conversion I get

/catalog/product_info.php/fat-grabbersÂr-180-caps-new-size-p-158

Any thought on what can be causeing this?

(and how to resolve it too!!)

Thanks

G
Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.

For links mentioned in old answers that are no longer here follow this link Useful Threads.

If this post was useful, click the Like This button over there ======>>>>>.

#3587   consolepro

consolepro
  • Members
  • 5 posts
  • Real Name:Loek

Posted 09 February 2012 - 08:56 AM

Hello.
To improve my RC2A site SEO ranking I've recently upgraded from old chemo's v21da_1_2 to the new USU5 r205 , but some function is (still) not working:
  • When I manually enter a url for an item that is not active anymore it still displays the "product not found" page (with a normal HTTP/1.1 200 OK instead of a 404 error. Is this normal? Should I want a 404 page here? If yes: how can I make this to work?
  • Im using the Multi Language system now so my default language (Dutch) is normal / url and the English is /en/ , but google still has many ?language=en urls in its system, is it smart to to 301 the ?language=en to the /en/ urls? If so: how can I make this to work?


#3588   mamegaga

mamegaga
  • Members
  • 16 posts
  • Real Name:davy

Posted 09 February 2012 - 09:29 AM

Hello All!

I updated my OSC2.1.3 in encoding UTF8 (strpos-> mb_strpos, substr-> mb_substr, mb_strlen -> mb_mb_strlen etc..)

It works but I have this message in the forehead frontoffice and backoffice, I cannot write any more on the cache:

Warning: SQLiteDatabase::query() [sqlitedatabase.query]: attempt to write a readonly database in /home/mysite.com/public_html/catalog/includes/modules/ultimate_seo_urls5/cache_system/sqlite.php on line 161

I put well CHMOD 755 and 777 on directory:

catalog/includes/ultimate_seo_urls5/cache_system/cache/
catalog/includes/ultimate_seo_urls5/cache_system/sqlite/

but it changes nothing there, I can use functions: mb_strpos, mb_substr, mb_strlen???

Thank you ! ^_^

Edited by mamegaga, 09 February 2012 - 09:30 AM.


#3589   consolepro

consolepro
  • Members
  • 5 posts
  • Real Name:Loek

Posted 09 February 2012 - 10:07 AM

I think I already managed to answer my 2) question, by adding to the .htaccess directly below rewritebase:
RewriteCond %{QUERY_STRING} language=en
RewriteRule ^(.*)$ /en/$1? [NC,R=301]
Now remains the 404 issue, would be glad if anyone could help.

Edited by consolepro, 09 February 2012 - 10:12 AM.


#3590   mamegaga

mamegaga
  • Members
  • 16 posts
  • Real Name:davy

Posted 09 February 2012 - 10:08 AM

Hello again,

I have another error message in my frontoffice:

Warning: SQLiteDatabase::query() [sqlitedatabase.query]: attempt to write a readonly database in /home/mysite.com/public_html/catalog/includes/modules/ultimate_seo_urls5/cache_system/sqlite.php on line 130


The line 130 is:

self::$db->query( $query );

:wacko: thank you

Edited by mamegaga, 09 February 2012 - 10:19 AM.


#3591   mamegaga

mamegaga
  • Members
  • 16 posts
  • Real Name:davy

Posted 09 February 2012 - 10:24 AM

View Postconsolepro, on 09 February 2012 - 10:07 AM, said:

I think I already managed to answer my 2) question, by adding to the .htaccess directly below rewritebase:
RewriteCond %{QUERY_STRING} language=en
RewriteRule ^(.*)$ /en/$1? [NC,R=301]
Now remains the 404 issue, would be glad if anyone could help.

Thank you for your help, I tried but, it does not work, I always have my message of error:


In front Office:

Warning: SQLiteDatabase::query() [sqlitedatabase.query]: attempt to write a readonly database in /home/mysite.com/public_html/catalog/includes/modules/ultimate_seo_urls5/cache_system/sqlite.php on line 130

Line 130:
self::$db->query( $query );

In Backoffice:
Warning: SQLiteDatabase::query() [sqlitedatabase.query]: attempt to write a readonly database in /home/mysite.com/public_html/catalog/includes/modules/ultimate_seo_urls5/cache_system/sqlite.php on line 161

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

It is a problem of writing. :unsure:

#3592   consolepro

consolepro
  • Members
  • 5 posts
  • Real Name:Loek

Posted 09 February 2012 - 10:36 AM

View Postmamegaga, on 09 February 2012 - 10:24 AM, said:

Thank you for your help, I tried but, it does not work

I was not helping you. I was unable to edit my post so I answered my own question, this solution you quote has nothing to do with your question.

#3593   geoffreywalton

geoffreywalton

    Contact me for Support

  • Community Sponsor
  • 8,032 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 09 February 2012 - 11:41 AM

View Postgeoffreywalton, on 07 February 2012 - 09:33 PM, said:

Hi

Just did a fresh install and added modular SEO header and this contribution.

Works fine except on products containing  '®' (registered in case it snafus)

For example

Fat Grabbers® (180 caps) NEW SIZE!

URL generated ends

/catalog/product_info.php/fat-grabbers®-180-caps-new-size-p-158

and get this error message

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Replace non alpa numerics is set to true.

If I add a char conversion I get

/catalog/product_info.php/fat-grabbersÂr-180-caps-new-size-p-158

Any thought on what can be causeing this?

(and how to resolve it too!!)

Thanks

G

SOLUTION

Put this in character_conversion.php

  $char_convert = array( '®' => 'R', 'Â' => 'R');

HTH

G
Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.

For links mentioned in old answers that are no longer here follow this link Useful Threads.

If this post was useful, click the Like This button over there ======>>>>>.

#3594   mamegaga

mamegaga
  • Members
  • 16 posts
  • Real Name:davy

Posted 09 February 2012 - 11:53 AM

Hello again,

I found!!!!

It was necessary to put the directory:

catalog/includes/ultimate_seo_urls5/cache_system/sqlite/

in CHMOD 777

I had of the put it in 755 :'(  Sorry :blush: :blush: :blush: :blush:

Edited by mamegaga, 09 February 2012 - 11:58 AM.


#3595   orchidist

orchidist
  • Members
  • 1 posts
  • Real Name:George Barnes

Posted 09 February 2012 - 03:03 PM

Hi, I am also having a problem with Ultimate SEO and oscommerce 2.3

I have used the old chemo seo on 2.2 and it works fine, the problem I am having is that I get error 500 messages, when trying to open catalog/index

If I use a clean applications_top the error ( and of course SEO ) vanishes.

Anyoone else had this problem.

#3596   piernas

piernas
  • Members
  • 8 posts
  • Real Name:Juanma

Posted 15 February 2012 - 01:05 PM

Hello,

For those with multilingual shops and google sitemap installed, you'll have duplicate products on sitemapProducts.xml:
In usu5_sitemaps/index.php:

Change (line 206)
	  usu5_create_sitemap_set( $languages['directory'], $languages['code'] );
to:
	  usu5_create_sitemap_set( $languages['directory'], $languages['code'], $languages['languages_id'] );

Also in line 165 change:
	$query = "SELECT p.products_id, p.products_date_added, p.products_last_modified FROM " . TABLE_PRODUCTS_DESCRIPTION . " pd INNER JOIN " . TABLE_PRODUCTS . " p ON p.products_id = pd.products_id WHERE p.products_status = '1' ORDER BY p.products_last_modified DESC, p.products_date_added DESC";
to:
	$query = "SELECT p.products_id, p.products_date_added, p.products_last_modified FROM " . TABLE_PRODUCTS_DESCRIPTION . " pd INNER JOIN " . TABLE_PRODUCTS . " p ON p.products_id = pd.products_id WHERE p.products_status = '1' AND pd.language_id = " . $languages_id  . " ORDER BY p.products_last_modified DESC, p.products_date_added DESC";

This way the product page will not be added for each language installed. Hope it's useful for you.

Edited by piernas, 15 February 2012 - 01:06 PM.


#3597   consolepro

consolepro
  • Members
  • 5 posts
  • Real Name:Loek

Posted 20 February 2012 - 10:45 AM

Small but vital add to piernas solution above:
In line 138 change:
  function usu5_create_sitemap_set( $language_directory, $code ) {
to:
  function usu5_create_sitemap_set( $language_directory, $code, $languages_id ) {

Edited by consolepro, 20 February 2012 - 10:50 AM.


#3598   consolepro

consolepro
  • Members
  • 5 posts
  • Real Name:Loek

Posted 20 February 2012 - 08:00 PM

The 2 posts above are not enough to get the sitemaps functionality 100% ok when using a multi language setup, the urls generated are always for the default language.
To fix this you need to change 2 files (thanks tho user "pages" for pointing this out)
In /includes/modules/ultimate_seo_urls5/page_modules/ apply this change to both files product_info.php and index.php
replace:
	protected function acquireLinkText() {
	  if (  false !== $final_text_array = Usu_Main::i()->getVar( 'registry' )
													   ->retrieve( $this->key, $this->keys_index[$this->key] ) ) {
		if ( Usu_Main::monitorPerformance() ) {
		  Usu_Main::$performance['queries_saved']++;
		}
		return $final_text_array;
	  }
	  $result = Usu_Main::i()->query( $this->query );
with
   protected function acquireLinkText() {
  // BOF fixes sitemaps multi language url
  if (!($_SERVER['REQUEST_URI'] == "/usu5_sitemaps/" || $_SERVER['REQUEST_URI'] == "/usu5_sitemaps/index.php")) {
		  if (  false !== $final_text_array = Usu_Main::i()->getVar( 'registry' )->retrieve( $this->key, $this->keys_index[$this->key] ) ) {
			if ( Usu_Main::monitorPerformance() ) {
				  Usu_Main::$performance['queries_saved']++;
			}
			return $final_text_array;
		  }
  }
  // EOF fixes sitemaps multi language url
		  $result = Usu_Main::i()->query( $this->query );


#3599   SpiceUp

SpiceUp
  • Members
  • 39 posts
  • Real Name:Spice
  • Gender:Female
  • Location:Toronto

Posted 26 February 2012 - 05:51 PM

Thanks all for this contribution and support; I was having problems with Ultimate_SEO_URLSv22d_11 so I decided to try this new one.

So far everything seems to work except iam missing all the graphics & Images will not display, upon further investigation found that the path look like


http://mysite.comdir_ws_catalog/images/spi****.jpg

should be
http://mysite.com/catalog/images/spi****.jpg

I am new to all this, can some one help, not sure if I have to add a line to .htaccess or make changes to my configure.php

Thanks in advance

#3600   Jord-

Jord-
  • Members
  • 3 posts
  • Real Name:Jordon Early

Posted 26 February 2012 - 10:52 PM

Heyy, just installed ect ect ect, i go to load my site so have a look and it doesnt load any of the images :/ ... Any ideas how to fix???

Thanks!!!!!!

Ohh it says this :)...

Warning: call_user_func(tep_reset_cache_data_usu5) [function.call-user-func]: First argument is expected to be a valid callback in *****************/catalog/ADMIN/includes/functions/general.php on line 1277