+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Remove extension (.html) from pages URLs

Hybrid View

  1. #1

    Remove extension (.html) from pages URLs

    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
    Attached Images Attached Images

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,162
    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.

  3. #3
    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

  4. #4
    Quote Originally Posted by Rudi View Post
    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

    Please answer me because i spent a lot of hours to replace the .html with / at includes and tpl directories and .html appears again at categories and search results. May i have to replace to other files?

  5. #5
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    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.

  6. #6
    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.

  7. #7
    Quote Originally Posted by Jonathan Solomon View Post
    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.
    Hi, can you tell me what I must modify at the index.php ?
    Thank you
    Sripai

  8. #8
    Senior Member
    Join Date
    Mar 2019
    Location
    Philadelphia, PA, USA
    Posts
    120
    I'm interested in this, too

  9. #9
    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

  10. #10
    Senior Member
    Join Date
    Mar 2019
    Location
    Philadelphia, PA, USA
    Posts
    120
    Hi Sripai,

    Thanks!

    Do you know how to remove .html from the actual listings, too?

+ Reply to Thread