Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Recommended Posts

Has anyone had success running this on a windows installation of apache? I think that is might be my problem.

 

Only the old cName versions work on WinDoze (2.1b or something) but .. as it happens .. I am working on a new version (2.2) and will need a winDoze user :) (I don't have a WinDoze test server)

 

Question:

 

The SEO urls look like www.mysite.com/my-great-product-c-93.html

 

Would it bother you if the WinDoze version looked like ..

 

www.mysite.com/index.php/my-great-product-c-93.html

 

Or

 

www.mysite.com/index.php/my-great-product-c-93

 

?

Link to comment
Share on other sites

Only the old cName versions work on WinDoze (2.1b or something) but .. as it happens .. I am working on a new version (2.2) and will need a winDoze user :) (I don't have a WinDoze test server)

 

Question:

 

The SEO urls look like www.mysite.com/my-great-product-c-93.html

 

Would it bother you if the WinDoze version looked like ..

 

www.mysite.com/index.php/my-great-product-c-93.html

 

Or

 

www.mysite.com/index.php/my-great-product-c-93

 

?

 

Doesn't bother me. I think the second one looks cleaner. If memory serves me, I don't think google bot would care either.

Edited by kLAcK
Link to comment
Share on other sites

I'd volunteer to be your windows user, but my dev box is windows and the server is apache. So I don't think I would make the ideal tester as bots would never hit my dev server.

 

No no the opposite .. it doesn't matter if bots do or don't hit your server .. what matters is that you are on an IIS box and whether the seo urls work on it at all.

Link to comment
Share on other sites

Hi There

 

I am updating my site and started again, i have Chemo SEO installed on both the old and new site but it used to be on a windoze

 

and i have lots of links in search engones i want to keep how do i divert

 

 

http://www.mydomain.com/product_info?pName...uct-detail-info

 

to

 

 

http://www.mydomain.com/product-detail-info-p-999.html

 

 

the product id should be the same on the old and new site, as would the title, so i assume the script in the seoclass would have to be adjusted to read the old title, but i havent got a clue, i spent days googleing and although i can understand what has to be done , i dont know how to do it.

 

Failing this how can i get a list (i have over 3,000 products) of the SEO version of the link (rather than the froogle one which is just the id code) so i can juggle with to make a line by line 301 divert, and would the HTaccess file be the best place for another 3,000 lines of text.

 

any pointers would be grateful, i have to open the new site in the next couple of days and do not want to lose the search engine traffic

 

 

 

Thank you

David

Link to comment
Share on other sites

Hello

Can you please help me with the ultimate seo script

I have installed the ""Sort order by drop down menu for product listing"script ( http://addons.oscommerce.com/info/6186 ) and my url looks like this http://lenjerie-intima-online.ro/bustiers-...d&sortcol=3 (in place of http://lenjerie-intima-online.ro/index.php...amp;cPath=1_12)

 

Could you help me to solve this problem.

I don't know how to make this rewrite rule to make both (ultimate seo script and sort order by drop down menu for product listing)

Link to comment
Share on other sites

I need a bit of help.

 

I have installed everything correctly and it all shows in /admin control panel.

 

The links do change from /product?hehdgsgd. to /ps3_games etc but an error occurs and the page doesnt show.

 

I do not have a .htaccess file in my catalog and have tried creating one and pasting the info in the installation file, then inserting it into my catalog root

 

Now my catalog is set up like this in my file manager.

 

/

game-gorilla.com

admin

cache

 

etc,

 

do i insert the file into the / folder or the game-gorilla.com folder. Also what do I rename the folder.

 

Hop you can help.... Thankyou

Link to comment
Share on other sites

I need a bit of help.

 

I have installed everything correctly and it all shows in /admin control panel.

 

The links do change from /product?hehdgsgd. to /ps3_games etc but an error occurs and the page doesnt show.

 

I do not have a .htaccess file in my catalog and have tried creating one and pasting the info in the installation file, then inserting it into my catalog root

 

Now my catalog is set up like this in my file manager.

 

/

game-gorilla.com

admin

cache

 

etc,

 

do i insert the file into the / folder or the game-gorilla.com folder. Also what do I rename the folder.

 

Hop you can help.... Thankyou

 

 

Your .htaccess file would go into your root directory, the same directory that your index.php file is in. By the way you describe your set up that would be your game-gorilla.com folder

 

Depending on which ftp program you are using you might have to name the folder htaccess.txt and upload it, then rename it .htaccess once it is in you root folder. (some ftp programs will not show .htaccess files)

 

Hope you get it working

Link to comment
Share on other sites

Your .htaccess file would go into your root directory, the same directory that your index.php file is in. By the way you describe your set up that would be your game-gorilla.com folder

 

Depending on which ftp program you are using you might have to name the folder htaccess.txt and upload it, then rename it .htaccess once it is in you root folder. (some ftp programs will not show .htaccess files)

 

Hope you get it working

I am using filezilla at the moment.

 

when i upload the file and refresh browser. It brings up server error

 

any help..

Link to comment
Share on other sites

I am using filezilla at the moment.

 

when i upload the file and refresh browser. It brings up server error

 

any help..

 

Try commenting out or removing the first line in your .htaccess file

 

Change this

 

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /

 

to this:

 

// Options +FollowSymLinks
RewriteEngine On 
RewriteBase /

 

NOTE: The RewriteBase should point to the directory/folder where you installation of oscommerce is. The above exampla is from my store which is installed in the root folder.

 

If your store were installed in a folder such as /catalog/ the you would change the RewriteBase to point to that folder

 

to this:

 

// Options +FollowSymLinks
RewriteEngine On 
RewriteBase /catalog

Edited by larryjam
Link to comment
Share on other sites

I still get this error

 

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

 

If you think this is a server error, please contact the webmaster.

 

Error 500

game-gorilla.com

 

 

any help???

Link to comment
Share on other sites

Hello,

I know this is a very popular contribution but what will it really do for my website? Is it going to help get increased ranking in the search engines? Or is it going to list my website in the search engines in a better format? What does it really do? Thanks for a non-programmer response!

Rob

Link to comment
Share on other sites

Ultimate SEO Urls will not increase your pagerank. What it will do is make your site much more search engine friendly. It will put your products categories and your products names in the url. Making it much more readable by the search engines.

 

Hello,

I know this is a very popular contribution but what will it really do for my website? Is it going to help get increased ranking in the search engines? Or is it going to list my website in the search engines in a better format? What does it really do? Thanks for a non-programmer response!

Rob

Edited by larryjam
Link to comment
Share on other sites

Hi,

 

Just installed the contribution. It works great... :)

 

Unfortunately the "Add category parent to begining of URLs?" is not working and I really need it !

 

Any suggestions ??? How can I fix this???

Link to comment
Share on other sites

Great contribution! Congrats to all developers.

Could someone, please, tell me how can I add new links? I mean, I would like to see www.mywebsite.com/contact instead of contact_us.php. The same for shopping cart and for other info pages.

I modified .htaccess file and added this: rewriterule ^contact contact.php [L]

The problem is that when I clikc the Contact Us button, I get the address www.mywebsite.com/contact_us.php. If I access www.mywebsite.com/contact it works. So, how do I make this work?

The second question: how do I modify the way that my modified links looks like? I would like to see it like folders. In fact, I don't like that -p-16.html there.

Please help me, cause I am a beginner in mod_rewrite. Thank you very much

 

Regards!

Link to comment
Share on other sites

Hi,

 

I've been using Ultimate SEO URL's with great success, but recently I tried adding the following to the .htaccess so that index.php redirected to /

 

RewriteCond %{HTTP_HOST} ^.*$

RewriteRule ^index\.php$ "http\:\/\/www\.oneofakind\.org\.uk" [R=301,L]

 

 

This works as expected but it also causes the category rewrites to stop working. Everything else is unaffected. Any ideas of what I need to change to get both to work together?

......

 

Eventually found a solution. Made the following changes to the index.php rewrite:

 

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/

RewriteRule ^index\.php$ "http\:\/\/www\.oneofakind\.org\.uk" [R=301,L]

 

Everything now works, (still don't understand .htaccess syntax but it works)

Edited by stevea1234
Link to comment
Share on other sites

This is a great contribution, but for some reason I get the price displayed as 0 on my admin product pages, but they display OK on the catalog.

 

I changed the default currency (which shows as it works fine in the shopping pages and the only change I have made to the page is the amendment for the Ultimate SEO URL package. The only other thing thats different to my other websites is that VAT is added on (where before they were inclusive)

 

Has anyone else had this problem? And if so, how did you tackle it?

 

Please help.

Edited by dvharrison

Debbie Harrison

 

Link to comment
Share on other sites

Having problems with redirects

 

I deleted a product by mistake which google had indexed as http://www.mydoman.com/my-product-name-p-203.html

 

I readded the product and the new url is http://www.mydomain.com/my-product-name-p-222.html

 

I have tried various ways of trying a 301 redirect for the old product url to the new url in htaccess but I can't get anything to work

 

Can anyone help with how to acheive the redirect with ultimate SEO installed please ?

 

Thanks ... Dennis

Link to comment
Share on other sites

Having problems with redirects

 

I deleted a product by mistake which google had indexed as http://www.mydoman.com/my-product-name-p-203.html

 

I readded the product and the new url is http://www.mydomain.com/my-product-name-p-222.html

 

I have tried various ways of trying a 301 redirect for the old product url to the new url in htaccess but I can't get anything to work

 

Can anyone help with how to acheive the redirect with ultimate SEO installed please ?

 

Thanks ... Dennis

 

Add the following code to a file and save it in

 

catalog/includes/classes/myredirects.php

 

AFTER you have changed the array $redirects to reflect the uris you want to redirect and to where.

 

<?php
 class My_Redirects {

private $redirects = array('my-product-name-p-203.html' => 'mynew-product-name-p-333.html',
						   'my-product-name-p-208.html' => 'mynew-product-name-p-457.html',
						   'my-product-name-p-212.html' => 'mynew-product-name-p-452.html');

public function __construct(){
  $this->checkRedirect();
}

private function checkRedirect(){
  $uri_tag = str_replace(array(DIR_WS_HTTP_CATALOG, strstr($_SERVER['REQUEST_URI'], '?')), '', $_SERVER['REQUEST_URI']);
  if ( array_key_exists( $uri_tag, $this->redirects) ){
	$this->redirect($this->redirects[$uri_tag]);
  }
}

private function redirect($uri_tag){
  $url = HTTP_SERVER . DIR_WS_HTTP_CATALOG . $uri_tag;
  session_write_close();
  header("HTTP/1.0 301 Moved Permanently");
  header("Location: $url");
  exit;
}
 }
?>

catalog/includes/application_top.php

 

Find ...

  if ($request_type == 'NONSSL') {
define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
 } else {
define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
 }

Add immediately below ..

 

  require_once DIR_WS_CLASSES . 'myredirects.php';
 new My_Redirects();

 

Done

 

I haven't tested this just wrote it quickly but give it a go .. it should work.

Link to comment
Share on other sites

Hi,

 

I'm using the ultimate seo 2.1d and more pics contri, but encountered something strange.

 

Google reported a lot of 404 errors.

 

When looking at the source, Google encounters e.g.:

 

<a href="http://www.xxxxx.nl/oscommerce/agate-beads-earrings-p-46#morepics.html" name="morepics" onMouseOver="document.MainImage.src='images/B10131-3.jpg'"><img src="imagemagic.php?img=images/B10131-3.jpg&w=400&h=400&page=" width="400" height="400" class="productsImages" border="0" alt="Agate beads earrings" title="Agate beads earrings"></a> </td>

 

Google stops at the # before morepics.html and therefor doesn't find a valid html.

 

Can this be changed? According to the more pics support forum this is a url rewrite issue. Can someone give me some advice? tkx in advance.

Link to comment
Share on other sites

Hi,

 

I'm using the ultimate seo 2.1d and more pics contri, but encountered something strange.

 

Google reported a lot of 404 errors.

 

When looking at the source, Google encounters e.g.:

 

<a href="http://www.xxxxx.nl/oscommerce/agate-beads-earrings-p-46#morepics.html" name="morepics" onMouseOver="document.MainImage.src='images/B10131-3.jpg'"><img src="imagemagic.php?img=images/B10131-3.jpg&w=400&h=400&page=" width="400" height="400" class="productsImages" border="0" alt="Agate beads earrings" title="Agate beads earrings"></a> </td>

 

Google stops at the # before morepics.html and therefor doesn't find a valid html.

 

Can this be changed? According to the more pics support forum this is a url rewrite issue. Can someone give me some advice? tkx in advance.

 

Anybody :unsure:

Link to comment
Share on other sites

Hello All,

I have been trying to get this to work on my site (modded and custom template ), after much trouble I removed it from my live site and added it to my testing site. I know that I have a working mod rewrite set and that I have the correct path on my .htaccess file since I had this contribution professionally installed on a really customized osc site on mine previously. I am trying to manually install version 2.7 on my cart which is osc 2.2m2 update 051112

 

I am getting the following errors:

 

on index.php :

 

Fatal error: Call to undefined function: mb_convert_case() in /home/content/my/site/path/demos/shoppingcart01/includes/classes/seo.class.php on line 1810

 

the code is as follows:

$anchor = ereg_replace($pattern, '', mb_convert_case($string, MB_CASE_LOWER, "utf-8"));

 

and the code just prior and previous from lines 1805-1814:

function strip($string){
	if ( is_array($this->attributes['SEO_CHAR_CONVERT_SET']) ) $string = strtr($string, $this->attributes['SEO_CHAR_CONVERT_SET']);
	$pattern = $this->attributes['SEO_REMOVE_ALL_SPEC_CHARS'] == 'true'
					?	"([^[:alnum:]])+"
					:	"([[:punct:]])+";
	$anchor = ereg_replace($pattern, '', mb_convert_case($string, MB_CASE_LOWER, "utf-8"));
	$pattern = "([[:space:]]|[[:blank:]])+"; 
	$anchor = ereg_replace($pattern, '-', $anchor);
	return $this->short_name($anchor); // return the short filtered name 
} # end function

 

and I also get these errors on my admin page:

ERROR #1

Warning: tep_href_link(includes/classes/seo.class.php): failed to open stream: No such file or directory in /home/content/my/site/path/demos/shoppingcart01/admin/includes/functions/html_output.php on line 22

 

ERROR #2

Warning: tep_href_link(): Failed opening 'includes/classes/seo.class.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/my/site/path/demos/shoppingcart01/admin/includes/functions/html_output.php on line 22

 

ERROR #3

Fatal error: Cannot instantiate non-existent class: seo_url in /home/content/my/site/path/demos/shoppingcart01/admin/includes/functions/html_output.php on line 25

 

The code is as follows for line 22:

include_once(DIR_WS_CLASSES . 'seo.class.php');

 

The code is as follows for line 25:

$seo_urls = new SEO_URL($languages_id);

 

and the code just prior and previous from lines 17-28:

 

if (SEO_ENABLED == 'true') { //run chemo's code
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
	global $seo_urls;
			if ( !is_object($seo_urls) ){
					if ( !class_exists('SEO_URL') ){
							include_once(DIR_WS_CLASSES . 'seo.class.php');
					}
					global $languages_id;
					$seo_urls = new SEO_URL($languages_id);
			}
	return preg_replace('/&/','&',$seo_urls->href_link($page, $parameters, $connection, $add_session_id));
 }

 

Thanks in advance for any help you may be able to give or if you know a more compatable version of the SEO contribution.

Edited by jester420247sl
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...