• Resolved mapper65

    (@mapper65)


    I previously had WordPress running on my Apache server and had to reload due to other issues. I have everything back up and running but now I have an issue with the previous permalinks. When I click on a permalink it cannot find the page. After reading online, if I add index.php to the beginning of the custom link then the page displays fine but it has index.php in the address line. I would like to try and clean this up to eliminate the index.php and everything that I have read online has not seemed to help. I tried putting a block of code in the htaccess file that people have been talking about and that didn’t seem to work.

    I’m sure there has to be a pretty simple fix but just can’t seem to stumble upon someone with the correct answer. Any suggestions

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mapper65

    (@mapper65)

    A little more information. When I click on Custom Structure, and clikc Save Changes, it goes back to Day either Day and Name or Month and Name.

    Thread Starter mapper65

    (@mapper65)

    I tried edited the .htaccess file with the following information:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    That did not work.

    I tried taking the .htaccess file that I had from my previous installation and

    That did not work.

    I tried creating a new empty .htaccess

    That did not work.

    I’m really surprised that nobody on here is smart enough to know the answer to this problem. There are a lot of similar answers on the web to this issue but none of them have worked.

    I’m really surprised that nobody on here is smart enough to know the answer to this problem.

    I doubt that’s really the case. Let’s take the simplest approach first.

    Temporarily chmod .htaccess to 666 or 777, whatever you are more comfortable with. Now try a custom permalink structure of /%category%/%postname%/. Allow wordpress to attempt to update your now writable .htaccess file for you. Take note of any message you may receive while doing so. If that succeeds, perhaps your custom permalink structure just needs tweaking, if not, perhaps you have an issue of some kind with mod_rewrite after your reload.

    [EDIT]

    This might be helpful if you discover it may be an apache configuration issue.

    Using “Pretty” permalinks

    Thread Starter mapper65

    (@mapper65)

    Using Filezilla the default value for .htaccess was 775. If I try and change it to 666 it goes to 664. If I change it to 777 it goes to 775. I’ve tried using both modifications and when I do and I select “Custom Structure” and press save, after pressing save, the screen refreshes and it goes back to month and name.

    Thread Starter mapper65

    (@mapper65)

    Finally got it! The Using “Pretty” Permalinks section worked. I swear I tried that before because it is simple enough to do. I’m wondering if restarting Apache was something I did this time that helped that may not have been in those instructions.

    Thanks for the help ClaytonJames.

    You are very welcome. It happens. Sometimes just a restart is all you need, especially if you made some minor change in httpd.conf at some point and then forgot about it temporarily. Either way, glad to hear you got it working again!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Permalink Question’ is closed to new replies.