WordPress.org

Ready to get started?Download WordPress

Forums

Can I do this with Permalinks? (2 posts)

  1. breixo
    Member
    Posted 5 years ago #

    Hi, well my permalinks are working fine and all that, I have this structure /read-id%post_id%-%postname%-hello.html
    I want to change the structure to /read-id%post_id%-%postname%-bye.html

    I know how to do it, but when I do that, the one I had before stops working, so all the people and search engines will not find the page. Is there any way to make both structures work at the same time? I tried editing my .htaccess with some lines which work on normal PHP.. but wordpress comes up with Internal Server Error...
    Here is the one I tried:

    RewriteRule ^read-id([0-9]*)-([[:space:][:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-hello.html index.php?p=$1

    Just to add info to help somebody.. my actual .htaccess is this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # 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 in advanced..

  2. breixo
    Member
    Posted 5 years ago #

    nobody knows? please... even if its to say its not possible..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags