Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ULTIMATE Seo Urls 5 - by FWR Media


Recommended Posts

<?php 
/**
*
* ULTIMATE Seo Urls 5
*
* 
* @package Ultimate Seo Urls 5
* @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License
* @link http://www.fwrmedia.co.uk
* @copyright Copyright 2008-2009 FWR Media
* @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk 
* @lastdev $Author:: Rob                                              $:  Author of last commit
* @lastmod $Date:: 2009-12-06 12:10:34 +0000 (Sun, 06 Dec 2009)       $:  Date of last commit
* @version $Rev:: 131                                                 $:  Revision of last commit
* @Id $Id:: usu5_sitemap_create.php 131 2009-12-06 12:10:34Z Rob       $:  Full Details   
*/

 include_once 'includes/application_top.php';
 /**
 * Create the sitemap index
 */
 $doc = new DOMDocument('1.0', 'UTF-8');
 $doc->formatOutput = true;
 $root = $doc->createElement( "sitemapindex" );
 $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
 $doc->appendChild( $root );
 $sitemap1 = $doc->createElement( "sitemap" );
 $loc = $doc->createElement( "loc" );
 $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG . 'sitemapCategories.xml';
 $loc->appendChild(
 $doc->createTextNode( $link ));
 $mod = $doc->createElement( "lastmod" );
 $mod->appendChild(
 $doc->createTextNode( date("Y-m-d") ));
 $sitemap1->appendChild( $loc );
 $sitemap1->appendChild( $mod );
 $root->appendChild( $sitemap1 );
 $sitemap2 = $doc->createElement( "sitemap" );
 $loc2 = $doc->createElement( "loc" );
 $link2 = HTTP_SERVER . DIR_WS_HTTP_CATALOG . 'sitemapProducts.xml';
 $loc2->appendChild(
 $doc->createTextNode( $link2 ));
 $mod2 = $doc->createElement( "lastmod" );
 $mod2->appendChild(
 $doc->createTextNode( date("Y-m-d") ));
 $sitemap2->appendChild( $loc2 );
 $sitemap2->appendChild( $mod2 );
 $root->appendChild( $sitemap2 );
 $doc->save('sitemapIndex.xml');

 /**
 * Now for the categories
 */
 $doc = new DOMDocument('1.0', 'UTF-8');
 $doc->formatOutput = true;
 // Creat the root node
 $root = $doc->createElement( "urlset" );
 $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");


 $doc->appendChild( $root );

 // Now do the categories
 function setCpath( $categories, $id ) {
   static $entry_id, $cpatharray;
   if(!isset($entry_id) || $entry_id == NULL) $entry_id = $id;
   ( empty( $cpatharray ) ? $cpatharray = array( $id ) : NULL );
   array_push( $cpatharray, $categories[$id]['parent'] );
   if( ( isset( $categories[$categories[$id]['parent']]['parent'] ) && $categories[$categories[$id]['parent']]['parent'] != '0' ) ) {
     setCpath( $categories, $categories[$id]['parent'] );
   }
   $fwrcpath = implode( '_', array_reverse( $cpatharray ) );
   if( $id == $entry_id ) {
     $entry_id = NULL;
     $cpatharray = array();
     return $fwrcpath;
   }
 }

 function categoriesFullScan(){
   $sql = "SELECT categories_id, parent_id, date_added, last_modified FROM " . TABLE_CATEGORIES . " GROUP BY categories_id ORDER BY date_added ASC, last_modified ASC";
   return tep_db_query($sql);
 }

 function buildCategoriesCache() {
   $result = categoriesFullScan();
   while ( $row = tep_db_fetch_array( $result ) ) {
     $categories[$row['categories_id']] = array( 'id'       => $row['categories_id'],
                                                 'parent'   => $row['parent_id'],
                                                 'path'     => '', 
                                                 'last_mod' => ( strtotime( $row['last_modified'] ) > strtotime( $row['date_added'] ) ) ? $row['last_modified'] : $row['date_added'] );
   }
   tep_db_free_result($result); // Housekeeping

   foreach ( $categories as $cat_id => $key ) {
     if ( $key['parent'] != '0' ) {
       ( isset( $categories[$key['parent']]['children'] ) && ( $categories[$key['parent']]['children'] !== null ) ) ? null : $categories[$key['parent']]['children'] = '';
       $categories[$key['parent']]['children'] .= $key['id'] . ',';
     } else {
       $categories[$key['id']]['path'] .= $key['id'];
     }
   }

   foreach ( $categories as $cat_id => $key ) {
     $fullcatpath = '';
     if( $key['parent'] != '0' ) {
       $fullcatpath = setCpath( $categories, $key['id'] );
       $categories[$key['id']]['path'] = $fullcatpath;
     }
   }
   return $categories;
 }
 $categories = buildCategoriesCache();
 foreach ( $categories as $cid => $detail ) {
   if( preg_match( '@[0-9_]@', $detail['path'] ) ) {
     $path = $detail['path'];
     $link = tep_href_link(FILENAME_DEFAULT, 'cPath=' . $path, 'NONSSL', false);
     $parent = $doc->createElement( "url" );
     $current = $doc->createElement( "loc" );
     $current->appendChild(
     $doc->createTextNode( $link ));
     $mod = $doc->createElement( "lastmod" );
     $mod->appendChild(
     $doc->createTextNode( date("Y-m-d", strtotime($detail['last_mod']) ) ) );
     $freq = $doc->createElement( "changefreq" );
     $freq->appendChild(
     $doc->createTextNode( "weekly" ));
     $priority = $doc->createElement( "priority" );
     $priority->appendChild(
     $doc->createTextNode( "0.5" ));
     $parent->appendChild( $current );
     $parent->appendChild( $mod );
     $parent->appendChild( $freq );
     $parent->appendChild( $priority );
     $root->appendChild( $parent );

   }
 }
 $doc->save('sitemapCategories.xml');
 // End categories xml

 /**
 * Now the products
 */
 $doc = new DOMDocument('1.0', 'UTF-8');
 $doc->formatOutput = true;
 $root = $doc->createElement( "urlset" );
 $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
 $doc->appendChild( $root );
 $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";
 $result = tep_db_query( $query );
 $count = 1;
 while ( $row = tep_db_fetch_array( $result ) ) {
   $parent = $doc->createElement( "url" );
   $current = $doc->createElement( "loc" );
   $current->appendChild(
   $doc->createTextNode( tep_href_link( FILENAME_PRODUCT_INFO, 'products_id=' . (int)$row['products_id'], 'NONSSL', false ) ) );
   $mod = $doc->createElement( "lastmod" );
   $mod->appendChild(
   $doc->createTextNode( ( strtotime( $row['products_last_modified'] ) > strtotime( $row['products_date_added'] ) ) ?  date( "Y-m-d", strtotime( $row['products_last_modified'] ) ) : date( "Y-m-d", strtotime( $row['products_date_added'] ) ) ) );
   $freq = $doc->createElement( "changefreq" );
   $freq->appendChild(
   $doc->createTextNode( "weekly" ));
   $priority = $doc->createElement( "priority" );
   $priority->appendChild(
   $doc->createTextNode( "0.5" ));
   $parent->appendChild( $current );
   $parent->appendChild( $mod );
   $parent->appendChild( $freq );
   $parent->appendChild( $priority );
   $root->appendChild( $parent );
 }
 tep_db_free_result( $result );
 $doc->save('sitemapProducts.xml');

 include_once DIR_WS_INCLUDES . 'application_bottom.php';  
?>

Link to comment
Share on other sites

USU5 modules as standard turn off underscores being allowed. This is because contributions tend to use the cPath type badly , just to highlight the menu, which ends up causing duplicate content where 1_2 links to exactly the same page as just 2 (if that makes sense).

 

If you really must have those links just open up the module file (Usu_Links2.php in this case) and change private $suppress_underscores = true; to false.

 

But my advice would be not to use the menu systems of these contributions.

 

Thanks for the prompt response, but those links do not contain underscores. The links are all displayed on one page, not in categories and yes I did try the fix to see if it made a difference ... and it didn't. I also tried changing the setting private $installed = false; to true ... that didn't seem to do anything either :-(

 

What is so frustrating is that everything works perfectly together on the dev site which is located in a directory ... and the sites are pretty much exact barring the colour scheme and the production site being in the root instead of a directory folder.

 

Any clue as to what might be going on here? I know if I turn of Ultimate SEO Urls 5, the Links Manager works ... but I need to either get this to work or find a way to exclude the Links Manager page from the url rewrite as it doesn't seem to work.

 

Thanks

Link to comment
Share on other sites

<?php 
/**
*
* ULTIMATE Seo Urls 5
*
* 
* @package Ultimate Seo Urls 5
* @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License
* @link http://www.fwrmedia.co.uk
* @copyright Copyright 2008-2009 FWR Media
* @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk 
* @lastdev $Author:: Rob                                              $:  Author of last commit
* @lastmod $Date:: 2009-12-06 12:10:34 +0000 (Sun, 06 Dec 2009)       $:  Date of last commit
* @version $Rev:: 131                                                 $:  Revision of last commit
* @Id $Id:: usu5_sitemap_create.php 131 2009-12-06 12:10:34Z Rob       $:  Full Details   
*/

 include_once 'includes/application_top.php';
 /**
 * Create the sitemap index
 */
 $doc = new DOMDocument('1.0', 'UTF-8');
 $doc->formatOutput = true;
 $root = $doc->createElement( "sitemapindex" );
 $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
 $doc->appendChild( $root );
 $sitemap1 = $doc->createElement( "sitemap" );
 $loc = $doc->createElement( "loc" );
 $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG . 'sitemapCategories.xml';
 $loc->appendChild(
 $doc->createTextNode( $link ));
 $mod = $doc->createElement( "lastmod" );
 $mod->appendChild(
 $doc->createTextNode( date("Y-m-d") ));
 $sitemap1->appendChild( $loc );
 $sitemap1->appendChild( $mod );
 $root->appendChild( $sitemap1 );
 $sitemap2 = $doc->createElement( "sitemap" );
 $loc2 = $doc->createElement( "loc" );
 $link2 = HTTP_SERVER . DIR_WS_HTTP_CATALOG . 'sitemapProducts.xml';
 $loc2->appendChild(
 $doc->createTextNode( $link2 ));
 $mod2 = $doc->createElement( "lastmod" );
 $mod2->appendChild(
 $doc->createTextNode( date("Y-m-d") ));
 $sitemap2->appendChild( $loc2 );
 $sitemap2->appendChild( $mod2 );
 $root->appendChild( $sitemap2 );
 $doc->save('sitemapIndex.xml');

 /**
 * Now for the categories
 */
 $doc = new DOMDocument('1.0', 'UTF-8');
 $doc->formatOutput = true;
 // Creat the root node
 $root = $doc->createElement( "urlset" );
 $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");


 $doc->appendChild( $root );

 // Now do the categories
 function setCpath( $categories, $id ) {
   static $entry_id, $cpatharray;
   if(!isset($entry_id) || $entry_id == NULL) $entry_id = $id;
   ( empty( $cpatharray ) ? $cpatharray = array( $id ) : NULL );
   array_push( $cpatharray, $categories[$id]['parent'] );
   if( ( isset( $categories[$categories[$id]['parent']]['parent'] ) && $categories[$categories[$id]['parent']]['parent'] != '0' ) ) {
     setCpath( $categories, $categories[$id]['parent'] );
   }
   $fwrcpath = implode( '_', array_reverse( $cpatharray ) );
   if( $id == $entry_id ) {
     $entry_id = NULL;
     $cpatharray = array();
     return $fwrcpath;
   }
 }

 function categoriesFullScan(){
   $sql = "SELECT categories_id, parent_id, date_added, last_modified FROM " . TABLE_CATEGORIES . " GROUP BY categories_id ORDER BY date_added ASC, last_modified ASC";
   return tep_db_query($sql);
 }

 function buildCategoriesCache() {
   $result = categoriesFullScan();
   while ( $row = tep_db_fetch_array( $result ) ) {
     $categories[$row['categories_id']] = array( 'id'       => $row['categories_id'],
                                                 'parent'   => $row['parent_id'],
                                                 'path'     => '', 
                                                 'last_mod' => ( strtotime( $row['last_modified'] ) > strtotime( $row['date_added'] ) ) ? $row['last_modified'] : $row['date_added'] );
   }
   tep_db_free_result($result); // Housekeeping

   foreach ( $categories as $cat_id => $key ) {
     if ( $key['parent'] != '0' ) {
       ( isset( $categories[$key['parent']]['children'] ) && ( $categories[$key['parent']]['children'] !== null ) ) ? null : $categories[$key['parent']]['children'] = '';
       $categories[$key['parent']]['children'] .= $key['id'] . ',';
     } else {
       $categories[$key['id']]['path'] .= $key['id'];
     }
   }

   foreach ( $categories as $cat_id => $key ) {
     $fullcatpath = '';
     if( $key['parent'] != '0' ) {
       $fullcatpath = setCpath( $categories, $key['id'] );
       $categories[$key['id']]['path'] = $fullcatpath;
     }
   }
   return $categories;
 }
 $categories = buildCategoriesCache();
 foreach ( $categories as $cid => $detail ) {
   if( preg_match( '@[0-9_]@', $detail['path'] ) ) {
     $path = $detail['path'];
     $link = tep_href_link(FILENAME_DEFAULT, 'cPath=' . $path, 'NONSSL', false);
     $parent = $doc->createElement( "url" );
     $current = $doc->createElement( "loc" );
     $current->appendChild(
     $doc->createTextNode( $link ));
     $mod = $doc->createElement( "lastmod" );
     $mod->appendChild(
     $doc->createTextNode( date("Y-m-d", strtotime($detail['last_mod']) ) ) );
     $freq = $doc->createElement( "changefreq" );
     $freq->appendChild(
     $doc->createTextNode( "weekly" ));
     $priority = $doc->createElement( "priority" );
     $priority->appendChild(
     $doc->createTextNode( "0.5" ));
     $parent->appendChild( $current );
     $parent->appendChild( $mod );
     $parent->appendChild( $freq );
     $parent->appendChild( $priority );
     $root->appendChild( $parent );

   }
 }
 $doc->save('sitemapCategories.xml');
 // End categories xml

 /**
 * Now the products
 */
 $doc = new DOMDocument('1.0', 'UTF-8');
 $doc->formatOutput = true;
 $root = $doc->createElement( "urlset" );
 $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
 $doc->appendChild( $root );
 $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";
 $result = tep_db_query( $query );
 $count = 1;
 while ( $row = tep_db_fetch_array( $result ) ) {
   $parent = $doc->createElement( "url" );
   $current = $doc->createElement( "loc" );
   $current->appendChild(
   $doc->createTextNode( tep_href_link( FILENAME_PRODUCT_INFO, 'products_id=' . (int)$row['products_id'], 'NONSSL', false ) ) );
   $mod = $doc->createElement( "lastmod" );
   $mod->appendChild(
   $doc->createTextNode( ( strtotime( $row['products_last_modified'] ) > strtotime( $row['products_date_added'] ) ) ?  date( "Y-m-d", strtotime( $row['products_last_modified'] ) ) : date( "Y-m-d", strtotime( $row['products_date_added'] ) ) ) );
   $freq = $doc->createElement( "changefreq" );
   $freq->appendChild(
   $doc->createTextNode( "weekly" ));
   $priority = $doc->createElement( "priority" );
   $priority->appendChild(
   $doc->createTextNode( "0.5" ));
   $parent->appendChild( $current );
   $parent->appendChild( $mod );
   $parent->appendChild( $freq );
   $parent->appendChild( $priority );
   $root->appendChild( $parent );
 }
 tep_db_free_result( $result );
 $doc->save('sitemapProducts.xml');

 include_once DIR_WS_INCLUDES . 'application_bottom.php';  
?>

 

Hi

 

Just wanted to ask what file is this code for? I don't seem to find anything similar. Anyways I addressed the problems I faced in my posts above. I don't know if you are fixing it but I don't seem to have a problem with the original version. it worked but it generated the old URL type which the product id =79. Which worked as a link but isn't what the website will show if you go there directly. What your fix did was make the sitemaps generate link exactly as found on the website but casued some problems with sitemaps that are empty or disabled in admin being generated as well sitemappages.xml has an error as mentioned above. Please let me know what you think or plan to do. Btw good work on your contribution. It's clean and simple. Nicely done. Oh you mentioned something about limitations? what is it? is it the rewrite thing? I will consider that later for now my links look half decent.

 

Thank

AE

Thank you in advance,

AE

Link to comment
Share on other sites

Thanks for the prompt response, but those links do not contain underscores. The links are all displayed on one page, not in categories and yes I did try the fix to see if it made a difference ... and it didn't. I also tried changing the setting private $installed = false; to true ... that didn't seem to do anything either :-(

 

 

Just to let you know that I found the problem .. I restored the private $installed setting back to false, turned Ultimate SEO Urls off, then on again and reset the cache and it's working fine :-D

Link to comment
Share on other sites

Just to let you know that I found the problem .. I restored the private $installed setting back to false, turned Ultimate SEO Urls off, then on again and reset the cache and it's working fine :-D

 

GRRRR I just installed the whole damned thing and it worked perfectly, I was just about to ask if you had reset the cache .

 

:D

Link to comment
Share on other sites

Hi

 

Just wanted to ask what file is this code for? I don't seem to find anything similar.

 

It is a very simple Google XML 0.9 sitemap including products and categoties.

 

Anyways I addressed the problems I faced in my posts above. I don't know if you are fixing it but I don't seem to have a problem with the original version. it worked but it generated the old URL type which the product id =79. Which worked as a link but isn't what the website will show if you go there directly. What your fix did was make the sitemaps generate link exactly as found on the website but casued some problems with sitemaps that are empty or disabled in admin being generated as well sitemappages.xml has an error as mentioned above. Please let me know what you think or plan to do. Btw good work on your contribution. It's clean and simple. Nicely done. Oh you mentioned something about limitations? what is it? is it the rewrite thing? I will consider that later for now my links look half decent.

 

Thank

AE

 

What problems? the only problems I saw you have where with the XML sitemap not with USU5.

Edited by FWR Media
Link to comment
Share on other sites

Hi,

 

I had recently installed Version 1.0 [sTABLE] r141 [FULL PACKAGE] and came across your extras folder. Which contained a fix to make Google XML Sitemap SEO work properly. It helped make the fixed the links inside the sitemap but caused two other problems.

 

1) I disabled manufactorer sitemap in the admin. And before the sitemapindex.xml would not generate nor show the sitemapmanufacturers.xml file. Now it shows it and its empty, which it should be since I ahve not set any manufacturer but when i uploaded the sitemapindex.xml google saw the sitemapmanufacturers.xml within the index sitemap and gave me an error only for that part tho. The rest is almost fine which leads to my second problem

 

2) sitemappages.xml now according to google generates the following error:

 

84

Invalid tag value

This XML tag has an invalid value. Please fix it and resubmit.

Parent tag: url

Tag: changefreq

Value:

Problem detected on: Jan 14, 2010

 

 

Which I don't know how that happened. Can you please advice me on how to fix those two errors. Also do you happen to know if you submit sitemapindex.xml, you don't need to submit all the other sitemaps because they are including in the sitemapindex.xml already right?

 

Thanks

AE

 

 

HERE ARE MY ISSUES. (I put it in caps just because I want to make sure you read that line) don't mean to yell or be rude. lol :)

Edited by aelalfy1989

Thank you in advance,

AE

Link to comment
Share on other sites

HERE ARE MY ISSUES. (I put it in caps just because I want to make sure you read that line) don't mean to yell or be rude. lol :)

 

They are sitemap issues not USU5 issues, all I did with the site map script was add back in standard oscommerce functionality.

Link to comment
Share on other sites

Hi..

I have got a strange problem here after installing Ultimate SEO. I'm using STS.

The menu is showing up ok and almost all menuchoices are working, but NOT those containing Norwegian chars:

I have in Norwegian: "Skotøy" (In english this is "Footwear")

I can not get the link for this menuchoice to work since it is showing up like this:

http://www.emti.no/c...øy-c-38.html

and it should show:

http://www.emti.no/c...otøy-c-38.html

(I hope the diff shows up in this post)

 

This link is showing right and working ok when not using Ultimate SEO.

 

Could someone please help me with this?

Link to comment
Share on other sites

Hi..

I have got a strange problem here after installing Ultimate SEO. I'm using STS.

The menu is showing up ok and almost all menuchoices are working, but NOT those containing Norwegian chars:

I have in Norwegian: "Skotøy" (In english this is "Footwear")

I can not get the link for this menuchoice to work since it is showing up like this:

http://www.emti.no/c...øy-c-38.html

and it should show:

http://www.emti.no/c...otøy-c-38.html

(I hope the diff shows up in this post)

 

This link is showing right and working ok when not using Ultimate SEO.

 

Could someone please help me with this?

 

Of course, it's my pleasure to help.

 

Are you using the admin settings? if so upload the character conversion file from the package extras/character_conversion_pack/norwegian.php

 

Check that the array is correct (after all I'm not multi lingual) also ensure that the filename is exactly the same as your osCommerce language name e.g. it may be norge so the character conversion file would then be named norge.php.

 

Hope that helps, if not feel free to repost.

 

[edit]Oh and don't forget to reset the cache[/edit]

Edited by FWR Media
Link to comment
Share on other sites

Of course, it's my pleasure to help.

 

Are you using the admin settings? if so upload the character conversion file from the package extras/character_conversion_pack/norwegian.php

 

Check that the array is correct (after all I'm not multi lingual) also ensure that the filename is exactly the same as your osCommerce language name e.g. it may be norge so the character conversion file would then be named norge.php.

 

Hope that helps, if not feel free to repost.

 

[edit]Oh and don't forget to reset the cache[/edit]

 

Hi..

ThanX for your answer.

I just upgradet to usu5, and now it works.

Link to comment
Share on other sites

KissMT Dynamic SEO Meta & Canonical Header Tags

 

Just launched as a new contribution.

 

I highly recommend users of USU5 to take a look.

 

Even if you are unsure and want to try it out while retaining your existing meta tags contribution there is a "2 minute test" instruction where you can try out KissMT without compromising your existing installation.

 

Download

 

Support thread

Link to comment
Share on other sites

Hi Just quck Question where I can post or to email character conversion for czech language the current have missing some characters

thanks

 

sent you a pm with my email address.

Link to comment
Share on other sites

I installed this contribution and it works great. I haven't completely finished all the testing on my test site but so far it's been great.

 

One thing that really surprised me is that all my old links still work. That is HUGE in my opinion!

Link to comment
Share on other sites

I installed this contribution and it works great. I haven't completely finished all the testing on my test site but so far it's been great.

 

One thing that really surprised me is that all my old links still work. That is HUGE in my opinion!

 

Thanks Dennistra.

 

One of the "MUST HAVEs" when building this was that it had to be backwards compatible with the old series 2 urls or it would have created havoc with SEO.

Edited by FWR Media
Link to comment
Share on other sites

Hi Sabrina

 

you run it by browsing to the site .. e.g.

 

Let's say your site is at www.mysite.com/catalog/

 

You would put the following in the top bar of your browser (browser being firefox or internet explorer)

 

http://www.mysite.com/catalog/installer.php

 

Just like browsing to your shop.

 

 

Hi Robert,

 

I would like to switch to Traditional URL and tried to follow the instruction, however, my knowledge is really limited on this. Do you know where I can set the AllowOveride to All? I know you already give the instructions on where to add the code, but I don't quite get it since I'm not very knowledgeable about this stuff. Do you mind giving me a more detailed instruction on that? Such as where I can find the file .htaccess and where to add? I found the file .htaccess in my Include folder. Is that the one? Should I copy the entire content from your .htaccess and add to the bottom of the .htaccess on my Oscommerce? I'm very sorry that I'm such a trouble and thanks so much for your help and patience!

 

 

Sabrina

Link to comment
Share on other sites

Hi Robert,

 

I would like to switch to Traditional URL and tried to follow the instruction, however, my knowledge is really limited on this. Do you know where I can set the AllowOveride to All? I know you already give the instructions on where to add the code, but I don't quite get it since I'm not very knowledgeable about this stuff. Do you mind giving me a more detailed instruction on that? Such as where I can find the file .htaccess and where to add? I found the file .htaccess in my Include folder. Is that the one? Should I copy the entire content from your .htaccess and add to the bottom of the .htaccess on my Oscommerce? I'm very sorry that I'm such a trouble and thanks so much for your help and patience!

 

 

Sabrina

 

Hi Sabrina

 

It's no trouble at all.

 

the .htaccess is not the one in your includes directory it is the one in the root directory. ( e.g. www.mysite.com/catalog/.htaccess )

 

The first thing to do is to ensure that ..

 

1) You are editing the correct .htaccess

2) When you do add the .htaccess code to the correct file ensure you get RewriteBase correct.

3) Turn USU5 to trad rewrite seo urls and try it out. Any problems post back here.

Link to comment
Share on other sites

Hi Sabrina

 

It's no trouble at all.

 

the .htaccess is not the one in your includes directory it is the one in the root directory. ( e.g. www.mysite.com/catalog/.htaccess )

 

The first thing to do is to ensure that ..

 

1) You are editing the correct .htaccess

2) When you do add the .htaccess code to the correct file ensure you get RewriteBase correct.

3) Turn USU5 to trad rewrite seo urls and try it out. Any problems post back here.

 

I still can't find the .htaccess file. There isn't such a file under the folder "root", or "root/shop". My website is teenyshoesmart.com if you need to take a look and decide what the problem is. Thanks sooooooo much, Robert!

Link to comment
Share on other sites

Hello,<br /><br />Thanks for this great job.<br />My database is in utf8 and i have a pb with the href :(convert not enable in seo option that I don't wish):<br /><br />Exemple : <br /><br />

<br />
é = e <br />
http........./boutique/catégorie-c-1.html ==> that I see<br />
http......../boutique/categorie-c-1.html ==> good link <br />
<br />
téstà3 for a product<br />

http:......../boutique/téstà 3-p-2.html ==> that I see<br />
http:......../boutique/testa 3-p-2.html ==> that I see<br />
<br />
<br />

<br />Where in your code, I can implement the utf8 function for have a good link.<br />i have another pb also there is a space between testa and 3-p-2.html (téstà 3-p-2.html or testa 3-p-2.html)<br /><br />Thanks you

Edited by Gyakutsuki


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

Hello,<br /><br />Thanks for this great job.<br />My database is in utf8 and i have a pb with the href :(convert not enable in seo option that I don't wish):<br /><br />Exemple : <br /><br />

<br />
é = e <br />
http........./boutique/catégorie-c-1.html ==> that I see<br />
http......../boutique/categorie-c-1.html ==> good link <br />
<br />
téstà3 for a product<br />

http:......../boutique/téstà 3-p-2.html ==> that I see<br />
http:......../boutique/testa 3-p-2.html ==> that I see<br />
<br />
<br />

<br />Where in your code, I can implement the utf8 function for have a good link.<br />i have another pb also there is a space between testa and 3-p-2.html (téstà 3-p-2.html or testa 3-p-2.html)<br /><br />Thanks you

 

In the downloaded package look in extras/character_conversion_pack/

 

You need to make a file like one of these and add it to the ultimate_seo_urls/includes/character_conversion/ directory.

 

The file must be named the same as your osCommerce language.

Link to comment
Share on other sites

I still can't find the .htaccess file. There isn't such a file under the folder "root", or "root/shop". My website is teenyshoesmart.com if you need to take a look and decide what the problem is. Thanks sooooooo much, Robert!

 

I can't see anything by looking at the site . .all I can see is that you still have the standard seo urls on and not the rewrite.

 

There isn't a folder "root" .. the term "root" relates to the starting (root) directory of your site (where e.g. product_info.php and stylesheet.css are)

Link to comment
Share on other sites

I can't see anything by looking at the site . .all I can see is that you still have the standard seo urls on and not the rewrite.

 

There isn't a folder "root" .. the term "root" relates to the starting (root) directory of your site (where e.g. product_info.php and stylesheet.css are)

 

The folder has product_info.php and stylesheet.css doesn't have the .htaccess file. The only place I can find it is in include folder. I set to standard seo urls because as soon as I changed it to rewrite, the products pages don't show up any more. I will change it to rewrite when I figure this recoding this out :-)

 

Thanks so much Robert, for your time and help!

 

 

Sabrina

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