Forums / All Other Contributions/Addons / Ultimate SEO URLs - Remove .html?

Ultimate SEO URLs - Remove .html?

Locked

Views: 11,442

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
19 Aug 2006, 11:07 AM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Ultimate SEO URLs - Remove .html?

I've setup Ultimate SEO URLs on my 1.3.0.2 ZenCart, but would like to remove the .html extention that is displayed for pages (in the address bar).

For Example, a cusomer click on the cart link and is sent to:

https://www.example.com/shopping_cart.html

But, I would like the address bar to read:

https://www.example.com/shopping_cart

I understand that this would require editing the .htaccess file (i think), but I don't know how! :(

Any advice would be great. Thanks.

My Contributions: Zen Lightbox | Best Sellers Reloaded

19 Aug 2006, 2:18 PM
#2
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

Re: Ultimate SEO URLs - Remove .html?

You want to .html there for search engine reasons.
I wouldnt recommend removing it.

20 Aug 2006, 10:35 AM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Ultimate SEO URLs - Remove .html?

Reesy:

You want to .html there for search engine reasons.
I wouldnt recommend removing it.

Thanks for the reply. Does it really affect search engines that much?

My Contributions: Zen Lightbox | Best Sellers Reloaded

20 Aug 2006, 11:38 AM
#4
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Ultimate SEO URLs - Remove .html?

Also, is it possible to remove the category and product codes from the url?

I'm thinking that this should not be a problem (since no two categories or products have the same names).

At the moment my urls read:

https://www.example.com/batteries-c-56.html

Anyway to get rid of the 'c-XXX'?

My Contributions: Zen Lightbox | Best Sellers Reloaded

26 Apr 2007, 2:17 PM
#5
mircose avatar

mircose

New Zenner

Join Date:
Nov 2005
Location:
www.carouseltoyshop.co.uk
Posts:
20
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

did u manage to get an answer for your question??

I am also interested about it..

please let me know if u find out..
thanks

23 May 2007, 7:24 PM
#6
ericny avatar

ericny

Zen Follower

Join Date:
Jan 2007
Posts:
100
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

I have a similiar question.

I am using SEO URL and i would like to find out if it is possible to add custom text into the html path. For example right now product links are generated as **www.mysite.com\product1.html**

i would like it to say
**www.mysite.com\MY_TEXT-product1.html**

I suppose a concatenate statement needs to be changed in one of the php files but i do not know which one.

23 May 2007, 8:10 PM
#7
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Ultimate SEO URLs - Remove .html?

If you will post in the Ultimate SEO URL thread you probably will get better response.

5 Aug 2008, 2:59 AM
#8
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

Reesy:

You want to .html there for search engine reasons.
I wouldnt recommend removing it.

You are just flat out wrong. Even if the comment was made a year or so ago, it was based on a complete misconception. Having .html does not give more value to your page. Having things such as an XHTML valid page, or well written page does.

Be careful about the SEO advice you give.

If you for example, tried the Wordpress CMS you would see that they remove ALL extensions from URLS, and simply end with trailing slashes e.g. "/"

Why does this help?

I have one theory--extensions such as .html or .php serve no purpose, and having only kewords in a URL make it focused, or in other words, there's less invalid garbage for a search engine to sort through.

Anyway, the current trend at least with CMS systems like Wordpress is to remove .html from pages--because it serves no purpose.

--Question--
Is there a post somewhere explaining how to remove .html from URLs with the ultimate SEO url mod? or can someone please post a link. I've been searching on that thread & on google--but I just found this thread with no answer.

here's the thread: (but I don't see the answer to my question)
http://forum.zen-cart.com/showthread.php?t=44104

5 Aug 2008, 8:16 AM
#9
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

Alright-- I got this for you--hopefully you'll see this reply.

I've successfully removed ".html" from all my links.

I changed pages from:
http://mysite.com/microsoft-internet-keyboard-ps2-p-25.html
TO
http://mysite.com/microsoft-internet-keyboard-ps2-p-25/

I replaced ".html" with "/" on every page.

Here's the steps--they must be followed exactly:

as a precaution, backup each page before you edit
for example:
I saved a copy of seo.url.php as seo.url_bak.php

1-find seo.url.php under catalog/includes/classes

replace each instance of ".html" with "/"
I suppose you can leave out the commented PHP that mentions its using ".html" as the default, but everything else has to go.

2-go to your .htaccess file
replace each instance of .html with "/"

3-Go to your mySQL database with phpMyAdmin or whatever mysql editor you use, find the table "seo_cache"
(you may want to back the table up first, however, I think there's no danger in making this change)
Click on all the information/ entries in "seo_cache"
on the dropdown choose "drop"
OR
Clear the SEO URL cache from the admin panel (sadly, I dont know how to do this)

Now click on your homepage/ or your catalog primary page....

Things should be working with no ".html" in the pages. Just beautiful trailing slashes & clean URLs... now I just have to figure out how to get rid of those garbage category numbers...

It's critical that you clear the cache--I tried doing this without the cache clear, and I was finding all 'blank' or 'empty' pages.

I hope others find this fix useful.

5 Aug 2008, 8:23 AM
#10
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

I've noticed there's a problem with EZpages, I think at least in my case, I'm just not going to use them to avoid the difficulty, unless someone has a simple solution.

5 Aug 2008, 8:54 AM
#11
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

Well--I'm having the problem with anything that's not on a category page--I'll have to look into this.

Any pages on the header/ footer of the site are having the issue.

5 Aug 2008, 9:51 AM
#12
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

dontknowwhatimdoing:

Well--I'm having the problem with anything that's not on a category page--I'll have to look into this.

Any pages on the header/ footer of the site are having the issue.

I figured it out--

On EZpages there's pre-defined links.

Based on the rules of the SEO URL mod, you have to change these pages manually.

By playing around I was able to figure out what the proper page names should be, then I went into the admin panel, tools, EZ Pages, and corrected the wrong links. Some kinds of page names can't be corrected by the SEO URL mod, I went ahead & deleted these pages or took them off the site completely.

31 Dec 2008, 2:23 AM
#13
jasonsfa98 avatar

jasonsfa98

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

Did you find out how to get rid of the -p-, -c-, etc?

6 Jan 2009, 10:59 AM
#14
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Ultimate SEO URLs - Remove .html?

jasonsfa98:

Did you find out how to get rid of the -p-, -c-, etc?

http://www.zen-cart.com/forum/showthread.php?p=665482#post665482

read that thread & use that mod. it's call SSU (simple seo urls)

don't bother with any other URL SEO mod, in my opinion.

it takes care of everything--i don't think there's a better mod out there, and this is easily better than the paid mods. this mod is free too.