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
Printable View
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
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?
Go to ftp://includes>>classes>>reefless.class.php in the method: url
find the code:
and replace to:PHP Code:
Only registered members can view the code.
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:
and replace to:Code:Only registered members can view the code.
save and check again.Code:Only registered members can view the code.
That worked perfectly. Thank you!
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
Will this not be solved with the update so that the .html extension is nowhere to be found by default?
Need to rewrite .html extensions only in the template in the templates folder?
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
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.
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.
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
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?
As described here based on if you do it should be everywhere without .html.
Check tpl files for search
from tpl > controllers and tpl > blocks
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.
Hello,
You need to replace 'html' with '/' in reefless.class.php > url
Thanks Rudi. Am I replacing each instance of 'html'?
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.
Attachment 4797
Hello,
Try this solution:
in includes/classes/rlListings.class.php > public function prepareListingTypeLinks
replace:
with:PHP Code:
Only registered members can view the code.
PHP Code:
Only registered members can view the code.
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!