Rewrites organization
- Create lib/rewrites.php and move everything from lib/htaccess.php
except the H5BP htaccess functionality into it
- In the config, change add_theme_support('rewrite-urls') to
add_theme_support('rewrites')
- Remove the Apache/LightSpeed HTTPD check for rewrites
- Update docs with better Nginx rewrite rules
This commit is contained in:
@@ -45,7 +45,7 @@ This file contains HTML5 Boilerplate's `.htaccess` which is automatically added
|
||||
|
||||
### htaccess.php
|
||||
|
||||
This file handles the clean URL rewrites and HTML5 Boilerplate `.htaccess`. [About the rewrites](rewrites.md).
|
||||
This file handles the HTML5 Boilerplate `.htaccess`.
|
||||
|
||||
### init.php
|
||||
|
||||
@@ -55,6 +55,10 @@ This file runs the initial theme setup and defines helper constants for later us
|
||||
|
||||
This file contains all the custom nav modifications (for Bootstrap) and clean up.
|
||||
|
||||
### rewrites.php
|
||||
|
||||
This file handles the clean URL rewrites. [About the rewrites](rewrites.md).
|
||||
|
||||
### scripts.php
|
||||
|
||||
This file handles all of the CSS and JavaScript.
|
||||
|
||||
Reference in New Issue
Block a user