#2739 closed defect (bug) (wontfix)
Reduce number of files in the root
| Reported by: | mikaelstaldal | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0.2 |
| Severity: | minor | Keywords: | files |
| Cc: | Focuses: |
Description
It would be nice if the number of files in WordPress installation root could be reduced. Sometimes you want to install WordPress in the root of a website, and have some other stuff there too.
I guess it would be quite easy to move most of the *.php files in the root to the wp-includes directory.
Ideally, only index.php, wp-config.php and .htaccess should be in the root.
Change History (5)
#2
@
20 years ago
See also Giving WordPress its Own Directory While Leaving the WordPress Index File in the Root Directory which may do what you want.
#3
@
20 years ago
- Resolution → wontfix
- Status new → closed
That ship has sailed. We can't count on mod_rewrite, and the files in the WP root are web resources, so we can't move them.
At any rate, moving WordPress to its own directory takes all of 5 seconds and is a transparent action. There's no reason that you'd HAVE to install WordPress in the root of your blog.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Take a closer look at what the rest of those root files do. Most are valid web resources and are not merely "includes" so they don't really belong there. It may be wise to consolidate and refactor some of those files as includes rather than web interfaces but simply moving them en masse doesn't make much sense.
If you could be more specific in your request, it might make more sense.