Call-back icon  Sales: Call 800.374.8146 (N America)|757.278.0920 (International)

Magento

Open Source eCommerce Evolved

Magento Forum

   
Page 1 of 2
Created my own method to fix SEO URL issue…. 
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

I went to the source and coded my own method and now the product pages always point to the original URL...there still might be some bugs, but i will fix that (if any).

let me know if im right: http://www.dogbedmall.com/magento/dog-beds/extra-small-dog-beds

most of the items on this site are in 5 or more different categories, but the product pages all point to the orignal URL.

Any thoughts would be great..

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

shyt, found a bug...hmmmmmm...almost there ill figure it out...i was so excited sorry folks…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

I think its FIXED! it works perfect now!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

In the script I just told it to go to the original URL, so no matter now many items u add to whatever amount of categories it will always go to the original url of the product.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

the new url is http://www.dogbedmall.com/shop

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dustin
Sr. Member
 
Total Posts:  117
Joined:  2008-03-13
Columbus, OH
 

How did you get it to do that?

Easy to fix? or a lot of file editing?

 
Magento Community Magento Community
Magento Community
Magento Community
 
bloggleme
Member
 
Total Posts:  75
Joined:  2008-05-06
 

so how did you do it? I would love to implement it on my site.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

it was easy, you only need to edit “list.phtml" inside “catalog” > “product” folder

edit the bold href(link) part, which is the image link (note: theis is not the modified line):

<a href=”<?php echo $_product->getProductUrl() ?>” title="<?php echo $this->htmlEscape($_product->getName()) ?>">

edit the bold href(link) part, which is the product line (note: theis is not the modified line):

<a href=”<?php echo $_product->getProductUrl() ?>” title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName())?></a>

If you guys cant solve it PM me, im pointing you in the right direction you should be able to solve it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bloggleme
Member
 
Total Posts:  75
Joined:  2008-05-06
 

I’ve already got this code..<a href="<?php echo $_product->getProductUrl() ?>” title="<?php echo $this->htmlEscape($_product->getName()) ?>">

I don’t think this is the fix. There needs to be code somewhere else - maybe a edited version of getProductUrl() ????

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

The code I posted is magento’s code (what ever one has)… I stated somewhere in the post that this is not the code fix, but the spot you modify to fix the url issue (thats were I made my modification and it works).

I am going to release the code, but once it’s determined its the best approach.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

This is what is states in the post with the code: (note: this is not the modified line): , i should of been more specific, didnt mean to cause confusion.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

I’ve just looked at http://www.dogbedmall.com/shop - looks like there’s something wrong with /shop/js/proxy.php - it redirects to home page, does this file exist?

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
FatDan
Jr. Member
 
Total Posts:  14
Joined:  2008-04-29
 

Great - now you only need to offer a free coffee while the pages load

 
Magento Community Magento Community
Magento Community
Magento Community
 
Conyx Group
Member
 
Total Posts:  50
Joined:  2008-03-19
 

@FatDan- I think you need to upgrade from the 56k modem your running, and FatDan I think a donut would suit ur needs better as opposed to coffee wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
garyhe
Member
 
Total Posts:  33
Joined:  2008-03-31
 

Hey conyx,

Did you ever figure it out completely? What’s the solution?

 
Magento Community Magento Community
Magento Community
Magento Community
 
bloggleme
Member
 
Total Posts:  75
Joined:  2008-05-06
 

anything going on with this?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2
 
Sales: Call 800.374.8146 (North America) 757.278.0920 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
33430 users|318 users currently online|74323 forum posts