+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Remove extension (.html) from pages URLs

  1. #11
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    Will this not be solved with the update so that the .html extension is nowhere to be found by default?

  2. #12
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    Need to rewrite .html extensions only in the template in the templates folder?

  3. #13
    How can i remove the .html from categories and search results?

    I do all replaces with "/" at the files witch Rudi says but at www.zanta.gr/autos.html and https://www.zanta.gr/autos/search-results.html i still have .html

  4. #14
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    There are also a few files in the includes folder that need to be overwritten, I have completely rewritten them everywhere, but be careful because there are some that will make an error. I also got a bug or two that had to be restored. It’s hard, but not impossible, I have all html extensions right now.

  5. #15
    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?

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

  7. #17
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    If you've looked through all the files in includes and tpl directories including .htaccess from the example below

    there are no other places in the script

    it should work without .html

  8. #18
    I checked again and all .html replaced with /

    I still have .html to https://www.zanta.gr/autos/search-results.html and https://www.zanta.gr/autos.html (at all listing types)

    any solution? is there another file to check?

  9. #19
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    As described here based on if you do it should be everywhere without .html.

  10. #20
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Check tpl files for search

    from tpl > controllers and tpl > blocks

+ Reply to Thread