Jump to content



Photo
* * * * - 10 votes

ULTIMATE Seo Urls 5 - by FWR Media


  • Please log in to reply
4059 replies to this topic

#3521   labmais

labmais
  • Members
  • 76 posts
  • Real Name:Rafael
  • Gender:Male
  • Location:Brazil

Posted 01 December 2011 - 13:36

Well I saw that statement on my index.php

I will reproduce:

LINE 243
echo '            <td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' ';

DarkEden Genesis Staff

#3522   mvanderhoff

mvanderhoff
  • Members
  • 73 posts
  • Real Name:Matt

Posted 01 December 2011 - 14:22


I also couldn't find that statement in index.php, but the contribution is working.
Allthough I don't have 'buy this' buttons on the categorypages.
Haven't found something yet what isn't working.

Is there any 'FILENAME_DEFAULT' in index.php, and that's not an argument of tep_href_link() ?


I did find the following with FILENAME_DEFAULT

Line 33:
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

Line 56 and 57:
$tab_sel = tep_href_link(FILENAME_DEFAULT);
$current_page = FILENAME_DEFAULT;


I was just very cautious as this was the first step and I was not finding anything remotely close to what was mentioned in the instructions.

Thanks so much for your help.

Edited by mvanderhoff, 01 December 2011 - 14:32.


#3523   harperk

harperk
  • Members
  • 67 posts
  • Real Name:Karl

Posted 01 December 2011 - 14:47

Hi,

I have a fresh install of osCommerce Online Merchant v2.3.1 and SEO URL 5. My problem is that while the products listings work when an image is clicked on the index page however a page not found error occurs when clicking any of the category links.

My Htaccess file is as follows.

# If you are getting errors you may need to comment this out like ..
# Options +FollowSymLinks
Options +FollowSymLinks
<IfModule mod_rewrite.c>
  RewriteEngine On
  # RewriteBase instructions
  # Change RewriteBase dependent on how your shop is accessed as below.
  # http://www.myfairhands.co.uk = RewriteBase /
  # http://www.myfairhands.co.uk/catalog/ = RewriteBase /catalog/
  # http://www.myfairhands.co.uk/catalog/shop/ = RewriteBase /catalog/shop/
  # Change RewriteBase using the instructions above
  RewriteBase /
  RewriteRule ^(.*)-p-([0-9]+).html$ product_info.php?products_id=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-c-([0-9_]+).html$ index.php?cPath=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
  # Articles contribution
  RewriteRule ^(.*)-t-([0-9_]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
  # Information pages
  RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
  # Links contribution
  RewriteRule ^(.*)-links-([0-9_]+).html$ links.php?lPath=$2&%{QUERY_STRING}
  # Newsdesk contribution
  RewriteRule ^(.*)-n-([0-9]+).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-nc-([0-9]+).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-nri-([0-9]+).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
  RewriteRule ^(.*)-nra-([0-9]+).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
</IfModule>

Please can anyone help with this.

Many thanks

Edited by harperk, 01 December 2011 - 14:59.


#3524   Piemol

Piemol
  • Members
  • 29 posts
  • Real Name:Leo Zandvliet
  • Gender:Male
  • Location:The Netherlands

Posted 01 December 2011 - 15:06

Hello harperk,

How do the urls to a category look like in the browser?

Can you maybe try remove the underscore after "0-9" in this line, the second rewriterule:
RewriteRule ^(.*)-c-([0-9_]+).html$ index.php?cPath=$2&%{QUERY_STRING}

I'm not a rewrite expert, but i mostly do this on a "try and error" basis /smile.png' class='bbc_emoticon' alt=':)' />.
Do the category urls work then? Do you maybe get an other error?

#3525   harperk

harperk
  • Members
  • 67 posts
  • Real Name:Karl

Posted 01 December 2011 - 15:23

Hi Piemol, thanks for the quick reply!

I have tried as you advised removing the underscore in the htaccess file but still get this page not found error. The browser link looks like this.

http://www.myfairhan...hings-c-22.html

Thanks

#3526   Piemol

Piemol
  • Members
  • 29 posts
  • Real Name:Leo Zandvliet
  • Gender:Male
  • Location:The Netherlands

Posted 01 December 2011 - 15:29

Okay,

Change the htaccess file back please then /smile.png' class='bbc_emoticon' alt=':)' />


What type of url rewriting did you chose in de admin?
There are four different types, is none working for the categories?

#3527   harperk

harperk
  • Members
  • 67 posts
  • Real Name:Karl

Posted 01 December 2011 - 15:30

I have filesystem as the rewrite. I have not tried the others but I will do this now and check. /smile.png' class='bbc_emoticon' alt=':)' />

#3528   harperk

harperk
  • Members
  • 67 posts
  • Real Name:Karl

Posted 01 December 2011 - 15:36

Hi Piemol

I only had 2 options for the url re-write standard and re-write.

I changed to standard and category links is now working works as follows

http://www.myfairhan...urnishings-c-22

This is not the best SEO method though right?

#3529   harperk

harperk
  • Members
  • 67 posts
  • Real Name:Karl

Posted 01 December 2011 - 15:39

Hi Peimol

I thnk you have helped me resolve this indirectly. I originally had a holding page index.html until I get this site fully functional so I remaned the index.php file.

I have now renamed this to correct index.php file again and all is now working after changing url re-write back to rewrite.

Thanks for you excellent support...a star!

#3530   Slowly Learning

Slowly Learning
  • Members
  • 8 posts
  • Real Name:Dayve Jacobus

Posted 03 December 2011 - 04:35

Well, I've read many pages of this topic, but never did quite find an answer.

Any help would be highly appreciated.

Firefox says all links are a never ending redirect loop.

I'm running OSC 2.3.1
This is Ultimate SEO 5.0
upgraded from 2.2d
The only other contribution is Google Analytics
And the Authorize AIM included with 2.3.1

This error only happens when I set uri's to exclude the /index.php/ from the filename
As it was set with 2.2d

I've reinstalled several times, occasionally from backups.

I've overwritten/copied the .htaccess info included with SEO 5.0 into the previous 2.2d .htaccess.
Do you copy all of it, does it need edited?

I've checked the configure files several times, but they are pretty self explanatory. www.mysite.com in the first couple lines and the rest don't even discuss renaming page names functions.
Is this topic refering to non includes/ or admin/includes configure.php's

I read something about 5.0 creating redirects from the 2.2d filenames at install.
Where would that be located? can that list be edited?

Thanks again for your help.
A 2000 product, 7 year old site is getting a host move and new back-end. Big project. All while trying not to loose too much traffic.

Advice/Answers would be highly appreciated.

Thank you so much.

#3531   Simpel

Simpel
  • Members
  • 104 posts
  • Real Name:de wit

Posted 03 December 2011 - 19:29

Hi there I am trying to install the contribution. But I got some problems.

The first one is multi language for manufacturer in table manufacturers_info

In ultimate_seo_urls5/page_modules/index.php
I got this but the code seems not right.



	'manufacturers_id' => array( 'marker'	 => '-m-',
																  'query'	  => "SELECT manufacturers_name FROM :TABLE_MANUFACTURERS_INFO WHERE manufacturers_id=':manufacturers_id' AND languages_id=':languages_id' LIMIT 1",
																  'to_replace' => array( ':TABLE_MANUFACTURERS_INFO', ':manufacturers_id', ':languages_id' ) ) );
	
Hope someone knows the code...

Edited by Simpel, 03 December 2011 - 19:31.


#3532   Juto

Juto
  • Members
  • 369 posts
  • Real Name:Sara
  • Gender:Female

Posted 05 December 2011 - 08:34

Hi, there's a big problem with usu5's tep_href_link:

Normal css rules like .class a:link are not working properly colors are lost.

When uisng usu5 "as is" r205, the links colors for the most part is not what I've specified -which is blue.

Verified by:
Replacing tep_href_link in html_output with either the standard tep_href_link or the one in usu5's usu_general_functions gives the right color.

Is there a fix for this?

Sara

#3533   Simpel

Simpel
  • Members
  • 104 posts
  • Real Name:de wit

Posted 08 December 2011 - 12:49

When I use path_rewrite. The .html disappear after coming up a new page.

public function createLinkString( $page, $text, $seperator, $value ) {
	  return usu5_multi_language( $separator = 'right' ) . $text . $seperator . $value . '.html';
	}

When I go with my mouse over the link everything seems right. But when I click, the ".html" disappear. When I type the .html after the url. The page show up. What could be wrong?

Edited by Simpel, 08 December 2011 - 12:50.


#3534   BoogiepopphantomThemisMartínez

BoogiepopphantomThemisMartínez
  • Members
  • 9 posts

Posted 12 December 2011 - 07:08

ULTIMATE Seo Urls 5
by FWR Media


Hi, I can't make that ultimate seo ulrs works with the rewrite mod, I modified my .htaccess, I even try with the three methods but doesnt work.



# If you are getting errors you may need to comment this out like ..
# Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase / http://www.boogiepetslandia.com = 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>


I have my oscommerce in the public_html, Anyone can help me?

#3535   kvadre

kvadre
  • Members
  • 53 posts
  • Real Name:jesper emborg

Posted 12 December 2011 - 07:24


RewriteBase / http://www.boogiepetslandia.com = RewriteBase /


Try changing this line to: RewriteBase /
As I recall you are not supposed to write your url.

/Jesper

#3536   makeholer

makeholer
  • Members
  • 66 posts
  • Real Name:Marco Castellari

Posted 13 December 2011 - 04:21

Sorry, i found it.

Edited by makeholer, 13 December 2011 - 04:26.


#3537   shakus

shakus
  • Members
  • 4 posts
  • Real Name:Jens
  • Gender:Male
  • Location:Germany - Saxony

Posted 13 December 2011 - 10:50

Hello together!

I just installed USU 5 and now I've got the following problem.

When I go to my Shop, at first every thing looks fine. But when I choose a category, all my css instructions disapear, so that I have a completely unformatted page. Also all images cannot be displayed.

The curious thing is, that this only happens with my best friend Internet Explorer (Mozilla and Google Chrome works perfect) and when german language is selected.

I searched for hours for a solution but I have no idea, what it can be. I did all the steps of the installation instructions certanly 5 times exactly as they stand there. But allways the same... Unfortunately I've just a few php skills, so I'm not really able to find the error [img]http://forums.oscommerce.com//public/style_emoticons/default/sad.png[/img]

I've got the suspicion, that the error could be in the application_top.php because when I change this file to the unmodified file, the error disapears.

Perhaps you can help me??????

Edited by shakus, 13 December 2011 - 11:04.


#3538   serpeal79

serpeal79
  • Members
  • 3 posts
  • Real Name:Sergio Perez

Posted 13 December 2011 - 16:54

Hello, everybody.

First of all, I cannot express with words how much I'd like to add this contribution to my site, tough it seems an impossible task (by now).

I also have the endless loop redirection problem.

My server data: Apache2/PHP5.3.2/MySQL5.1.41/mod_rewrite loaded

Im using a highly modified osCommerce-MS2, that's why I don't want to move to a newer version.

I've been two entire days installing and re-installing USU5, USU5PRO and even the original Chemo addon, and only the last one worked. Despite of that, I'd like to have USU5 or USU5PRO working, and that's why I finally decided to ask in this forum.

Since the original Chemo addon worked from the beginning I started thinking that the problem dealed with the osCommerce version (MS2 is older than RC1 and 2), but Rob himself noticed that his contribution should work even in MS2, so I continued looking for a solution.

I'm using the .htaccess provided in "extras/htaccess.txt", I've changed RewriteBase /~serpeal/ to fit my installation.

The link http://192.168.1.12/~serpeal/index.php shows perfectly. If I hover a product link I see the proper "rewrited" url, the problem is when I push that link. I got stuck in the endless loop redirection.

The only step of the installation that I skipped is the sixth (6) catalog/includes/modules/product_listing.php)

Which says explicitly: "Note: Don't worry if you can't find the above, if you have a modified file the code may not exist"

I've checked this forum deeply looking for the solution but it seems that "most of times" the problem deals with mod_rewrite and the .htaccess file being correctly installed and configured which (I think after lots of revisions) I have.

I would appreciate any suggestion/idea/solution of how to solve/debug this problem.

Thanks in advance for any help.

Regards!

#3539   serpeal79

serpeal79
  • Members
  • 3 posts
  • Real Name:Sergio Perez

Posted 13 December 2011 - 17:59

Oh, I forgot... I've also read that this problem may be produced by a bad includes/configure.php

I access my shop as http://192.168.1.12/~serpeal/index.php

The first 10 lines of my configure.php are:

define('HTTP_SERVER', 'http://192.168.1.12/~serpeal'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'http://192.168.1.12/~serpeal'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '192.168.1.12/~serpeal');
define('HTTPS_COOKIE_DOMAIN', '192.168.1.12/~serpeal');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
And I have in my .htaccess:

Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /~serpeal/

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>
Thanks in advance.

#3540   serpeal79

serpeal79
  • Members
  • 3 posts
  • Real Name:Sergio Perez

Posted 13 December 2011 - 18:28

mwahHAHAHAHAHAHAHAHA!!!!!

Evil is in my configure.php...... I've changed the lines to this new ones:

define('HTTP_SERVER', 'http://192.168.1.12');
define('HTTPS_SERVER', 'http://192.168.1.12');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', '192.168.1.12');
define('HTTPS_COOKIE_DOMAIN', '192.168.1.12');
define('HTTP_COOKIE_PATH', '/~serpeal/');
define('HTTPS_COOKIE_PATH', '/~serpeal/');
define('DIR_WS_HTTP_CATALOG', '/~serpeal/');
define('DIR_WS_HTTPS_CATALOG', '/serpeal/');

And everything works now!!!! Except reviews, but that's a minor fail.....

It's great when you solve it by yourself, isn't it?

The only two good things of being working days and days to solve a problem are:

1.- You feel great when you get it
2.- You've learned a lot (in this case of what do some variables in configure.php mean)

Cheers!!