WordPress.org

Support

Support » How-To and Troubleshooting » Permalink change breaks site

Permalink change breaks site

  • Changing the permalink structure has made the site unreachable, including wp-admin. Is there a way to change this back without the admin console?
    Thanks
    Harry

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    What is in your .htaccess file?

    This file has been modified from suggestions on google. The problem is, this .htaccess is at /var/www. There are four subsites that are being run from this:

    ls
    blog ddrc gisurg panc test wp

    Some are working, some are not.
    1- should I create a separate .htaccess for each site, and where? Is this possible?
    2 – Why does this break when I change common settings to Post Name?
    3 – Why is the original .htaccess file unable to accomodate this change. Is this a rights issue?

    Thanks for the help
    Harry

    Original .htaccess is commented out.
    #protect wpconfig.php
    #<files wp-config.php>
    #order allow,deny
    #deny from all
    #</files>
    #order allow,deny
    #deny from all
    #</files>
    This does not seem to work.
    # 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

    esmi

    @esmi

    Forum Moderator

    Can you reduce the file to just:

    # 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

    Make sure that you use a plain text editor to make the changes.

    At this point, since these are in beta, I am going to re-build and see what happens with the corrected .htaccess. Removing the commented out sections did not solve the problem. Still have 2 questions.
    1 – How can I change the permalink setting to post name in 3.4.2?
    2- What other file could be modified to correct this issue? As I said, only one site is inoperable.

    I promise never to forget git.
    Harry

    esmi

    @esmi

    Forum Moderator

    1. Via Settings -> Permalinks

    2. None. The permalink settings are stored in your database.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalink change breaks site’ is closed to new replies.