• Hi,

    I moved my page from one server to another new one with CentOS First page works fine, but the permalinks are not working.

    Actually I try to configure the Permalink with “Postname” settings but it shows me a 404 error when accessing the different links. However, with “Plain” settings it works correctly The DocumentRoot permissions are apache.apache and have access and correct permissions to access.

    The rewrite_module is loaded:

    
    [root@srvws01 conf.d]# apachectl -M | grep rewrite_module
     rewrite_module (shared)
    

    My Apache config file https://www.domain.es.conf

    
    <VirtualHost *:443>
    
      ServerAdmin [email protected]
      ServerName www.domain.es
      ServerAlias domain.es www.domain.es
    
      LogLevel debug
      KeepAliveTimeout 100
    
      ErrorLog logs/ssl_error_www.domain.es_log
      CustomLog logs/access_www.domain.es_log combined
      DocumentRoot /var/www/html/www.domain.es
    
     <Directory "/var/www/html/www.domain.es">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
      </Directory>
    
    </VirtualHost>

    The content of file /var/www/html/www.domain.es/.htaccess:

    
    # BEGIN WordPress
    
        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
        </IfModule>
        # END WordPress
    

    I have recreated the htaccess file (via wp-admin) and the problem persists. What can happen and what can I do?

    • This topic was modified 5 years, 2 months ago by guif.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Error 404 Not Found with Permalink’ is closed to new replies.