Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 09-04-2008, 10:49 AM   #1
Junior Member
 
Join Date: Sep 2008
Posts: 10
Rep Power: 4
AHTOXA is on a distinguished road
Default Was anyone able to get rid of .html (seo_v4 module)

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
AHTOXA is offline   Reply With Quote
Old 09-04-2008, 10:55 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,023
Rep Power: 116
Eric Barnes is a jewel in the rough
Default

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:
Another question to the creators of the SEO module, - is there any reason you decided to add that extra tail?
Not really any reason. I guess it may be a good idea in the future to have an option where you can define what extension you want.
__________________
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
Eric Barnes is offline   Reply With Quote
Old 09-04-2008, 04:29 PM   #3
Junior Member
 
Join Date: Sep 2008
Posts: 10
Rep Power: 4
AHTOXA is on a distinguished road
Default .html

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
AHTOXA is offline   Reply With Quote
Old 09-05-2008, 01:27 AM   #4
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,208
Rep Power: 61
juven14 is a jewel in the rough
Default

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
juven14 is offline   Reply With Quote
Old 10-01-2008, 08:30 AM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 805
Rep Power: 21
bowers01 is on a distinguished road
Default

Hi,
Did you end up getting this working fine?
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0