WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks and Mod_rewrite alternative (3 posts)

  1. clay
    Member
    Posted 10 years ago #

    I am using ipowerweb.com as a server, and apparently the server does not like the:
    RewriteEngine on
    format that the WP admin panel produces for permalinks.
    After quite a lot of google scouring I have found a fix for that. If you are getting a 500 server error from your server.. try this style:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /home/adailyad/public_html/
    RewriteRule ^([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/?$ /journal/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^category/?(.*) /journal/index.php?category_name=$1 [QSA]
    </IfModule>

    Obviously the base path should be changed to suit your situation.
    The only problem I am having with this now, is that it breaks all my html graphics in that directory when you click one of the links.

  2. Chris J. Davis
    Member
    Posted 10 years ago #

    You just need to add a preceeding / to all your image paths and you should be fine.

  3. clay
    Member
    Posted 10 years ago #

    Thanks. Everything seems to be working perfectly now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.