+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Remove extension (.html) from pages URLs

  1. #21
    Quote Originally Posted by Viktor View Post
    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.
    Hi Viktor,

    Still, does this work?

    Please Guide how to remove .html from all the pages

  2. #22
    Remove .html from all site it is a very long way and not so easy. Because exist many static pages that need to remove .html
    I suggest you create a new ticket with the request.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #23
    Senior Member
    Join Date
    Mar 2019
    Location
    Philadelphia, PA, USA
    Posts
    120
    Quote Originally Posted by Viktor View Post
    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.

    Hi, how can this be accomplished in 4.9?

  4. #24
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    You need to replace 'html' with '/' in reefless.class.php > url

  5. #25
    Senior Member
    Join Date
    Mar 2019
    Location
    Philadelphia, PA, USA
    Posts
    120
    Thanks Rudi. Am I replacing each instance of 'html'?

  6. #26
    Quote Originally Posted by Rudi View Post
    Hello,

    You need to replace 'html' with '/' in reefless.class.php > url
    Hello. After replacing the menu in the header, it redirects to the home page. Can you please tell me where else to replace html with / ?
    I am using version 4.9.1
    Thanks in advance.
    2023-02-01_104616.png

  7. #27
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Try this solution:

    in includes/classes/rlListings.class.php > public function prepareListingTypeLinks

    replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code

  8. #28
    Great, it all worked out. Thank you very much! The only thing is that it's impossible to login to the account (it redirects to the same login ...login.html), I guess I need to remove the html from the list of listed files specified in the previous posts of this thread.
    Have a nice day everyone!

+ Reply to Thread