Comments (2)
ah, you are right!
knowing that I would prefer clean URL's...
thank you!
from wondercms.
@kroovysteph
I'll explain on how this is possible, but first why I would not recommended doing this.
In general, items in the menu are not supposed to include special characters.
WonderCMS without .htaccess would write URLs like http://example.com/index.php?page=pageName. With the help of a simple rewrite rule RewriteRule ^(.+)$ index.php?page=$1 [QSA,L], we replace that part by just delivering http://example.com/pageName.
Because of the QSA parameter, a query string is passed with the original URL and is appended to rewrite it in a way that your URL pageName?param=1 becomes index.php?pageName¶m=1, thus rendering it incorrectly (notice the ? -> &).
One way of making this work would be:
- Removing the rewrite line from .htaccess, but by doing this - clean URL's will no longer be working.
- Edit menu to include index.php?page= in your menu links.
- You will be able to have question marks in your menu links, they'll be also highlighted. For example, your URL would be http://example.com/index.php?page=yourpage? (and highlighted).
from wondercms.
Related Issues (20)
- Edit contact form plugin to not delete config and data
- Default language of site HOT 7
- Could renderPageNavMenuItem() be made public, or injectable?
- System administration should escape data HOT 3
- It would be nice if the result of loadPlugins() could be re-used HOT 2
- suggestion: don't use CDNs for default theme HOT 3
- database.js: Page visibility indicator HOT 2
- Hooks on logins HOT 2
- Can't install HOT 6
- Synology NAS Support HOT 16
- [Feature Request] Per page theming/multiple active themes HOT 1
- Add timeCreated and timeUpdated to database.js for posts
- Option to display Blog on homepage HOT 2
- Control that the url is not already used when creating a new blog post
- Backup a(nd Restore) Plugin? HOT 2
- [Plugin improvement] Next/Previous on Blog Plugin
- [Plugin request] RSS Feed
- some question about image and plugin of create blog HOT 1
- php on a specific page HOT 1
- No Plugins or Themes - new installation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wondercms.