• Resolved jorgepi

    (@jorgepi)


    Hi:
    I’m hosting my site in my own Centos 5.5 server. I have PHP 5.1.6 and Apache 2.2.3.
    I installed wordpress without problems. But, I changed the permalinks structure to /%category%/%postname%/ and my pages are not loading. I only see the home page. I get the following error when trying to access other pages:
    The requested URL /about was not found on this server.

    I created an .htaccess file which has this inside:
    # 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

    I have changed the permissions to 777 in order for wordpress to modify it without a problem, but still I can’t access my pages.

    I have 3 sites on this server. One regular site and Two WordPress blogs. With both blogs I’m having the same problem.

    I have seen other posts, but none of them solved my problem.

    Thanks in advanced for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Check with your host if they have mod_rewrite On as apache rewrites the urls.

    Thread Starter jorgepi

    (@jorgepi)

    I checked my httpd.conf file and mod_rewrite is On. Just in case, I added the following lines that I found Googling to the Apache Virtual Hosts:
    RewriteEngine On
    RewriteOptions Inherit

    I reboot the server, but still doesn’t work.

    Thread Starter jorgepi

    (@jorgepi)

    Thanks govpatel, what you said made me look in that direction. This is what I did that solved my problem:
    I Opened the Apache configuration file httpd.conf and changed AllowOveride None to AllowOveride All inside the DocumentRoot Directory Directive. I then rebooted the server and problem solved.

    Once I rebooted I opend the httpd.conf file again and I don’t know why, but the lines that I added to the Apache Virtual Hosts disappeared (RewriteEngine On
    RewriteOptions Inherit).

    Glad to hear that my hint solved your problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Updated the permalinks and now I can't access my pages’ is closed to new replies.