.HTACCESS Problem

paulgee
.HTACCESS Problem
paulgee@2d9f54f3 Tuesday 3rd December 2024, 20:49:35

I have checked that htaccess mod_rewrite is working on the domain, and the same htaccess code works on every website including wordpress to remove/rewite index.php from the path every site other than flatboard works fine?

i.e. the present path is https://domain.com/index.php/forum

I need index.php removed! With a result of
https://domain.com/forum

has anyone else had this problem?
Thanks
Paul

Replies 3
Fred
Fred  Wednesday 4th December 2024, 15:13:13

Hello Paul,
Flatboard does not use Apache's mod_rewrite but its own URL system.
I had made this system so that Flatboard could work on many free servers.
It would require a complete overhaul of the engine to integrate this system.
So I regret not being able to give a favorable answer to your request.
Best regards Fred.

Last modified by Fred on Monday 9th December 2024, 15:15:00
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

paulgee
paulgee@2d9f54f3  Thursday 5th December 2024, 05:31:32

OK Fred and thanks.

That is disappointing and bad news, from an SEO perspective that is not great to be frank, I have also noticed the program adds .CSS and JavaScript that is not necessarily needed when loading say pages instead of the forum, these plugins and/or extensions also severally slow the page loading time.

Thanks for your feedback.
Paul

SurveyBuilder-Admin
SurveyBuilder-Admin  Monday 9th December 2024, 14:59:54

  You realize you control the plugins, so if you think a plugin is slowing down your web server, disable or remove it.
Also, you can rewrite the .htaccess by changing the following lines.
1. Change index.php to forum.php
2. Add this code to your .htaccesss
# Activate your Rewrite engine
RewriteEngine On

# Remove .php from index
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\\.]+)$ $1.php [NC,L]

# Set DefaultIndex
DirectoryIndex forum.php


You may need to go through every file to fix and change the main file location to forum and not file requires .php in the URL

Last modified by SurveyBuilder-Admin on Monday 9th December 2024, 15:00:00
Software engineer, creates plugins for Flatboard, checks source codes, and answers any software errors questions and contributes on the GitHub page as well

Suggested Topics
Fred
25.6K 8
Want to read more? Browse all categories or view latest topics.