Title: Removing /wordpress from URL
Last modified: August 30, 2016

---

# Removing /wordpress from URL

 *  [Stephen](https://wordpress.org/support/users/smblank/)
 * (@smblank)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/removing-wordpress-from-url-3/)
 * Hello All,
 * We have a fresh install of wordpress on CentOS 6.7 with Apache.
 * Currently, the wordpress files are located in /usr/share/wordpress and my domain
   name is <ourdomainname>.com/wordpress.
 * in /etc/httpd/conf.d we have a file called wordpress.conf which contains the 
   following:
 *     ```
       cat wordpress.conf
       Alias /wordpress /usr/share/wordpress
   
       <Directory /usr/share/wordpress>
         AllowOverride Options
         <IfModule mod_authz_core.c>
           # Apache 2.4
           Require local
         </IfModule>
         <IfModule !mod_authz_core.c>
           # Apache 2.2
           Order Allow,Deny
           Allow from All
        </IfModule>
       </Directory>
   
       <Directory /usr/share/wordpress/wp-content/plugins/akismet>
         <FilesMatch "\.(php|txt)$">
           Order Deny,Allow
           Deny from all
         </FilesMatch>
       </Directory>
       ```
   
 * httpd.conf shows
    `DocumentRoot "/var/www/html"`
 * What would be the best way to remove the wordpress subdirectory from the site’s
   URL so we can just use the base URL to access the wordpress site directly? I 
   assume we should leave the wordpress files where they are and try to do it through
   configuration changes?
 * Is there a reason not to just put the files in the document root folder?

Viewing 1 replies (of 1 total)

 *  [kjodle](https://wordpress.org/support/users/kjodle/)
 * (@kjodle)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/removing-wordpress-from-url-3/#post-6687396)
 * Have you seen this?
 * [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install)
 * > Is there a reason not to just put the files in the document root folder?
 * For a lot of people, it makes sense to put WP in the root, but there are times
   when it makes better sense to put it in a subdirectory. For example, if you want
   to run a forum or photogallery in the same URL, without using a subdomain, this
   makes it easy to do so.

Viewing 1 replies (of 1 total)

The topic ‘Removing /wordpress from URL’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [kjodle](https://wordpress.org/support/users/kjodle/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/removing-wordpress-from-url-3/#post-6687396)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
