Default Pretty Permalinks on Install
|Reported by:||mdawaffe||Owned by:||ryan|
Currently, we default to uglinks (http://example.com/?p=1) on new installs since we don't know if we can write to .htaccess ahead of time.
It'd be nice if we could set up pretty permalinks by default if possible.
A couple options to kick of some brainstorming.
- Set structure to /%year%/%monthnum%/%postname%/, see if it works behind the scenes. If it doesn't work, set to /index.php/%year%/%monthnum%/%postname%/, see if it works behind the scenes. If it doesn't work, set to uglinks.
- Enable query string based permalinks: /?%year%/%monthnum%/%postname%/. This would require changes to the wp and rewrite classes.
... other ideas?
In any case, we may want to prompt users to look at their permalink settings just after they install. If they change their structure a month later, their old links will be broken since we have no mechanism to redirect from either of the suggestions above to a new arbitrary structure. (The current default uglinks don't create this problem because we can always make a match from uglinks).
Though we could create such a heuristic mechanism:
If 404, look to see if request matches the default permalink structure, and if there's something there to redirect to, then 301.