Forums

[resolved] htaccess problems can't change permalinks (4 posts)

  1. billdennis4
    Member
    Posted 6 years ago #

    I'm trying to switch permalink structures and I keep getting 404 Not Found error messages. I suspect it's a problem wih .htaccess.

    I have the file set at CMOD 666. But, the WP permalink page keeps telling me the page is not writable.

    I've tried to add the changes manually, but the problem persists.

    my .htaccess page is located in directly in my sites main directory, while my WP installation is in the /blogpeoria subdirectory.

    Any ideas on how to fix this problem?

    ANd yes, I tried to search for earlier posts, but I can't seen to find any articles on it.

    Thanks in advance

  2. Austin Matzko
    Member
    Posted 6 years ago #

    Since WP doesn't seem able to write to the file, try entering the text it suggests directly into the .htaccess file. It should look something like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    </IfModule>

    # END WordPress

  3. billdennis4
    Member
    Posted 6 years ago #

    Some proggress! Now I'm getting the following error messages:

    Warning: main(wp-blog-header.php): failed to open stream: No such file or directory in /home/peoriap/public_html/index.php on line 6

    Warning: main(wp-blog-header.php): failed to open stream: No such file or directory in /home/peoriap/public_html/index.php on line 6

    Fatal error: main(): Failed opening required 'wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/peoriap/public_html/index.php on line 6

  4. billdennis4
    Member
    Posted 6 years ago #

    It turned out that I didn't have an .htaccess file in my root WP directory. I copied to the correct file and the problem fixed itself.

    Thanks for all your help.

Topic Closed

This topic has been closed to new replies.

About this Topic