WordPress.org

Ready to get started?Download WordPress

Forums

Permalink change breaks site (6 posts)

  1. hamackey
    Member
    Posted 1 year ago #

    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

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    What is in your .htaccess file?

  3. hamackey
    Member
    Posted 1 year ago #

    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

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  5. hamackey
    Member
    Posted 1 year ago #

    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

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    1. Via Settings -> Permalinks

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags