• Resolved luggie

    (@luggie)


    Heyho
    After moving my site from one server to another everything works just fine except for permalinks which used to work on the old server.
    Once I use any other setting than default, it gives me 404.

    Content of .htaccess:

    `<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Options -Indexes

    ##lines below by Hetzner
    <FilesMatch “xmlrpc.php”>
    Order Deny,Allow
    Deny from all
    </FilesMatch>
    ## lines above by Hetzner

    # 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 don’t really know why it’s posting those line twice.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter luggie

    (@luggie)

    content of index.php

    <?php
    define(‘WP_USE_THEMES’, true);
    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

    Thread Starter luggie

    (@luggie)

    solved by editing apache2.conf
    <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All //Instead of None
    Require all granted
    </Directory

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 with permalinks’ is closed to new replies.