[SOLVED] URL Writing
solved URL Writing
4baea Friday 5th February 2016, 21:29:43Hi Dev,
You know how to make by removing **view.php** from url:
to
You know how to make by removing **view.php** from url:
https://flatboard.org/view.php/forum/2015-09-232343104e686
to
https://flatboard.org/forum/2015-09-232343104e686
4baea locked the discussion.
Replies 6
Hi, in **lib/Flatdb.lib.php**, change the date format in newEntry():
public static function newEntry()
{
return date('Y-m-d');
}
- 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!
- I am currently busy 😫.
It is the creation date of a discussion or reply.
This allows sorting by date as files, to have a subject or a single answer.
**view.php** is to separate the display of a discussion with his answers, view the plugin page, list the discussions of a forum.
This allows sorting by date as files, to have a subject or a single answer.
**view.php** is to separate the display of a discussion with his answers, view the plugin page, list the discussions of a forum.
- 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!
- I am currently busy 😫.
The objective is precisely Flatboard be accessible without .htaccess and therefore for any server.
We can easily add rules in a .htaccess but you also modify all links in the script, which I would not touch this time. It will give them to each update.
**.htaccess example:**
Not tested!
We can easily add rules in a .htaccess but you also modify all links in the script, which I would not touch this time. It will give them to each update.
**.htaccess example:**
# The server must follow symbolic links :
Options +FollowSymlinks
# Enabling URL Rewrite Module :
RewriteEngine on
#--------------------------------------------------
# Rewrite Rules :
#--------------------------------------------------
# Discussion :
RewriteRule ^topic/([0-9]+)$ view.php/topic/$1/p/$2 [L]
# Forum :
RewriteRule ^forum/([0-9]+)$ view.php/forum/$1 [L]
Not tested!
- 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!
- I am currently busy 😫.
Suggested Topics
AlexanderLiebrecht
started solved NoFollow for all external Links on Flatboard Forum
General Questions
iagovar
started theme Remove reply frame
Feature Requests
613c11e7
started solved How to change date posted?
General Questions
mzch@ab7edc2b
started 🐞 fixed Unable to switch a theme in Bootstrap theme switcher
Bug reports