WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] changed my server, permalinks not working ok (3 posts)

  1. diego018
    Member
    Posted 6 years ago #

    i have a blog, and i was using permalink 301 redirection plugin to redirect my previous posts:
    http://www.myblog.com/?p=20
    to my new way:
    http://www.myblog.com/google/stuff.html
    /category/postname.html or something.

    i have moved today to my new server, and i get 404 error pages when trying to access my blog posts. the only way i can use permalinks is this way:
    http://www.myblog.com/index.php/category/postname.html
    or anything, it must have /index.php/ before the category and the postname. With that way, my blog works. But i dont want that ugly /index.php/ in the name of the posts.. can it be something related to .htacess? this is what it looks like now:

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

    # END WordPress

    thanks if u can help me!

  2. diego018
    Member
    Posted 6 years ago #

    this error was because i had mod_rewrite not enabled. i have enabled it now, i have checked that it works by redirecting another page. But i cant still use pretty permalinks! they keep me getting a 404 error page. i think the error is in the .htaccess:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !index.php
    RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
    </IfModule>

    # END WordPress

    because my config on my apache doesnt have a module mod_rewrite.c because its not needed anymore on apache 2.0
    whats the way my .htaccess should be? any sugerence?

  3. diego018
    Member
    Posted 6 years ago #

    desactivated, then activated the redirection plugin. Now all works fine. this helped me as a diary to solve my problem.

Topic Closed

This topic has been closed to new replies.

About this Topic