Forums

[resolved] /%postname% not working on my local server (12 posts)

  1. kzq
    Member
    Posted 2 years ago #

    I am using 2.8.6 WP. I installed WP on my local machine. I am trying to use /%postname% but its not working and if I choose http://localhost/?p=123 its working fine. Its necessary that we have to use /%postname% option only. Can anyone please tell me how to fix this issue?

  2. alism
    Member
    Posted 2 years ago #

    Try using:
    /%postname%/

    Make sure that mod_rewrite is enabled. If you're using IIS though, it might be a different story...

  3. kzq
    Member
    Posted 2 years ago #

    No same problem. I am using "wamp server". .htaccess always update when I change Permalink Settings.

  4. alism
    Member
    Posted 2 years ago #

    Can you use other Permalink structures ok? What actually happens, do you get 404's? Is mod_rewrite definitely active?

  5. kzq
    Member
    Posted 2 years ago #

    When I update my Permalink Settings->sustom structure into /%postname% or /%postname%/ .htaccess update automatically

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

    # END WordPress

    and when I try to open http://localhost/this-is-test then IE give me "The webpage cannot be found" error.

  6. alism
    Member
    Posted 2 years ago #

  7. kzq
    Member
    Posted 2 years ago #

    Nop same. not working. I did what both link said but I am confuse XAMPP server is good or WAMPServer? I will also try Plesk on my 2003 machine.

  8. kzq
    Member
    Posted 2 years ago #

    problem solved. I changed few lines in php.ini.

  9. distractedthinking
    Member
    Posted 2 years ago #

    Hi kzq could you please share what you changed in php.ini, i have installed my localhost manually and /%postname%/ is not working for me. I have enabled mod_rewrite in http config but not working.

  10. Reginator
    Member
    Posted 2 years ago #

    Yes, any additional info on what was changed in php.ini would be helpful for me as well. Thx!

  11. Mark / t31os
    Moderator
    Posted 2 years ago #

    Options +FollowSymLinks

    Always required on my local install..

    Failing that check mod_rewrite is enabled in http.conf , it may be commented out ..

    Just a few suggestions.. ;)

  12. paddu.3one
    Member
    Posted 1 year ago #

    Hi kzq I want to use %postname% in local machine.....
    i made changes in .htaccess...but its not working...
    if i add index.php before %postname% then its working..
    but its not soo good..
    And am using latest version 3.0.1wp..
    where i have to chage those settings..?
    pl....z solve my problem..

Topic Closed

This topic has been closed to new replies.

About this Topic