Support » Fixing WordPress » Can I do this with Permalinks?

  • 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..

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I do this with Permalinks?’ is closed to new replies.