• Resolved Xaliber

    (@xaliber)


    I need help using Permalink Manager. It works perfectly fine in localhost, but when I move the site to liver server all links turn into 404 page.

    .htacess files are exactly the same.

    
    # BEGIN WordPress
    # The directives (lines) between <code>BEGIN WordPress</code> and <code>END WordPress</code> are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /udl/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /udl/index.php [L]
    </IfModule>
    
    # END WordPress

    Any help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @xaliber,

    could you try to replace contents of .htaccess file with this code:

    # BEGIN WordPress
    # The directives (lines) between <code>BEGIN WordPress</code> and <code>END WordPress</code> are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <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

    It looks like the WordPress files were hosted in /udl/ directory on local server. If you moved the website to a production server and now the files are stored in the main directory you need to update RewriteBase.

    Best regards,
    Maciej

    Thread Starter Xaliber

    (@xaliber)

    I really don’t know how could I copy-pasted the .htaccess but missed that. Solved my 2 hours problem in less than 5 minutes.

    Thanks a lot, Maciej! Great plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 error page after moving from local server to live’ is closed to new replies.