+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Remove extension (.html) from pages URLs

  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
    1,967
    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
    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.

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

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

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

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

    Thanks!

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

  8. #8
    Go to ftp://includes>>classes>>reefless.class.php in the method: url
    find the code:

    PHP Code:
    Only registered members can view the code
    and replace to:

    PHP Code:
    Only registered members can view the code

    Also, need to change rewrite rule in the .htaccess file.

    open the file in the root directory. Find line:

    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    save and check again.
    Last edited by Viktor; October 1, 2019 at 04:51 AM.
    Viktor,
    Flynax technical department,
    Best wishes.

  9. #9
    Senior Member
    Join Date
    Mar 2019
    Location
    Philadelphia, PA, USA
    Posts
    112
    That worked perfectly. Thank you!

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

+ Reply to Thread