Hi,
Is there an easy way to remove the (.html) from page URLs. Notice the html is included automatically on the "edit page", page.
Any help would be appreciated,
Thanks
Hi,
Is there an easy way to remove the (.html) from page URLs. Notice the html is included automatically on the "edit page", page.
Any help would be appreciated,
Thanks
Hello,
The quick solution is to remove .html from links in menus: go to ftp > templates > your template > tpl > menus > replace .html with / in these 3 files
also disable .html in your listing type: Category Settings > Enable .html at the end of category URLs > No
completely removing .html from the site is a bit difficult, you need to look through all the php and tpl files in includes and tpl directories and replace .html
Last edited by Rudi; January 15, 2019 at 05:01 AM.
completely removing .html from the site is a bit difficult, you need to look through all the php and tpl files in includes and tpl directories and replace .html[/QUOTE]
I do this ( replace all .html with / ) and most ".html" replaced with "/"
But i see https://www.zanta.gr/autos/search-results.html and https://www.zanta.gr/autos.html.
All categories and search results have the .html
I rewrote it in the following files and it is good.
includes/classes/
reefless.class.php
rl2co.class.php
rlAccount.class.php
rlCategories.class.php
rlCommon.class.php
rlListings.class.php
rlListingTypes.class.php
rlMessage.class.php
rlNavigator.class.php
rlPayment.class.php
rlPlan.class.php
rlSearch.class.php
rlSmarty.class.php
rlSubscription.class.php
includes/controllers/
account_type.inc.php
confirm.inc.php
listing_details.inc.php
listing_remove.inc.php
listing_type.inc.php
my_listings.inc.php
news.inc.php
profile.inc.php
remind.inc.php
rss_feed.inc.php
includes/utils/
Profile.php
And of course you still have to rewrite it in the template folder. Nowhere do I have a .html extension anywhere.
Thanks, that got me in the right direction. Those are the main links I wanted changed. I also had to make a change to the main index.php file, cause it was redirecting and adding the ".html" back, so that needed a little change too.
Thank you for your help.
I'm interested in this, too
Hi Jason,
you can deactivating or delet this code at the main index.php:
Code:Only registered members can view the code.
Good luck!
Sripai
Hi Sripai,
Thanks!
Do you know how to remove .html from the actual listings, too?