WordPress.org

Ready to get started?Download WordPress

Forums

Unable to modify the WordPress Permalink (11 posts)

  1. tekehe
    Member
    Posted 2 years ago #

    I would like to ask about. WordPress Permalink from the beginning to the present are example.net /? p =123 this form.
    Now I want to modify it to example.net /% postname% of this form. This brings up a new problem is an old post has been unable to access.
    Can you provide me with a solution? Thank you!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. tekehe
    Member
    Posted 2 years ago #

    Where there is no solution.

  4. govpatel
    Member
    Posted 2 years ago #

    If you using custom structure or in 3.3 there is Post name choice then your urls will be rewritten to example.net/postname
    If this not working for you then you need check with host if Mod_rewrite is enabled.

  5. ClaytonJames
    Member
    Posted 2 years ago #

    Read these sections carefully.
    Using "Pretty" permalinks
    Permalinks without mod_rewrite

    Also, when you change permalink structure from the dashboard, .htaccess has to be temporarily writable by WordPress, or else you have to copy the rules to .htaccess manually.

  6. tekehe
    Member
    Posted 2 years ago #

    I used the latest wordpress version, I have tried to add in the htaccess file RedirectMatch 301 ^ / (\ d +) $ / (*) Rules.

    And I have also the Custom Structure here to add /% postname%.

  7. ClaytonJames
    Member
    Posted 2 years ago #

    1) is mod_rewrite installed and working?

    2) does the web server configuration allow you to place AllowOverride All in the host container?

  8. tekehe
    Member
    Posted 2 years ago #

    How to detect mod_rewrite is working?

  9. govpatel
    Member
    Posted 2 years ago #

    You need ask your host as that is the Apache Module that is on server that rewrites urls using code from .htaccess file.

  10. tekehe
    Member
    Posted 2 years ago #

    ok,

    RedirectMatch 301 ^ / (\ d +) $ / (*) The code for errors?

    Or need to this form of ?
    # Remove year and month the info from permalinks for the blog in the root directory
    RewriteRule ^ ([0-9] {4}) / ([0-9] {1,2}) / ([^ /] +) /? $ Http://domain.tld/ $ 3 / [R = 301 , L]".

  11. tekehe
    Member
    Posted 2 years ago #

    Mod_rewrite and AllowOverride All is turned on. Please give me solution.Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags