• 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)
Viewing 1 replies (of 1 total)
  • The topic ‘Removing /wordpress from URL’ is closed to new replies.