|
|
#1 |
|
Junior Member
Join Date: Sep 2008
Posts: 10
Rep Power: 4 ![]() |
Hey guys, I am trying to get rid of .html extention for the SEO mudule, so url looks like that
blah.com/classifieds/categories/real_estate it currently looks like this blah.com/classifieds/categories/real_estate.html Has anyone already done it? Another question to the creators of the SEO module, - is there any reason you decided to add that extra tail? Thanks |
|
|
|
|
|
#2 | |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,023
Rep Power: 116 ![]() |
To change it I think you need to edit the mod_user.php file and remove the .html from the second array.
Next open the .htaccess and remove all the \.html Quote:
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2008
Posts: 10
Rep Power: 4 ![]() |
Hey Eric, I followed your instructions, but the links still have .html extention, so you get on the "404 The page cannot be found" But here is an interesting part, once manualy remove .html in the url address bar of the browser and hit enter, the page is displayed. This means .htaccess file and .php file were modifyed right, but there is some other files that add .html in the link itself.
I did "Find All" command for .html and found 10 other files having such. For example files in includes\classes\smarty\plugins function.feature_listings_horizontal.php Line 120 $link="listing/".$loop[$x][id]."/".$listing_title.".html"; function.feature_listings_vertical.php Line 85 $link="listing/".$loop[$x][id]."/".$listing_title.".html"; function.new_listings.php Line 80 $output.="<a href='listing/".$loop[$x][id]."/".$listing_title.".html'>".$loop[$x][title]."</a>"; Of course I can remove all of these and test it, but think it's appropriate to get advice from the creators, so nothing goes wrong in case I over do it. Thanks |
|
|
|
|
|
#4 |
|
Moderator
|
You've got it right, you will have to scrub those files, not sure how many, but there should be no .html files being generated outside the SEO so you should be safe.
__________________
John Snyder PHP Developer |
|
|
|
|
|
#5 |
|
Genius At Work
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 805
Rep Power: 21 ![]() |
Hi,
Did you end up getting this working fine? Cheers
__________________
Nick Bowers 68c v4.09 Developer Custom Template |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Maps Module for V3 & V4 | Lhotch | Modules / Plugins / Modifications | 18 | 09-29-2008 08:05 AM |
| Google Maps Module - Beta tester needed. | Lhotch | v4 Questions & Support | 17 | 07-30-2008 12:30 PM |