How to create rewrite rules on Fedora 5 Apache

Posted on 2007-08-08
Last Modified: 2013-12-06

in wordpress

all customized permalinks will not work unless rewriting rules is enables as stated in

my local office url is

anypost will be reflected as

this is what i did:
in /etc/httpd/conf/httpd.conf
FROM #LoadModule rewrite_module modules/


LoadModule rewrite_module modules/
AddModule mod_rewrite.c

second line is added m manually
I add the following to /etc/httpd/conf/httpd.conf

<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteRule ^/shortcut$ /complicated/and/way/too/long/url/here
#RewriteRule /products/([0-9]+) /siteengine/products.php?id=$1
RewriteRule /([0-9]+) /wordpress/?=p$1

when I try to restart httpd

[root@localhost conf]# /etc/rc.d/init.d/httpd start
Starting httpd:
 Apache 1.3 configuration directives found
 please read /usr/share/doc/httpd-2.2.0/migration.html

I would appreciate if anyone could provide me what's wrong and a feasible solution

Still puzzled

thanks a lot!
Question by:shortandsharp
    LVL 57

    Expert Comment

    AddModule was removed with Apache V2.0.  Get rid of it.

    Author Comment

    Are you implying apache 2.0 no longer supports rewrite?

    so, how do I fixed my problem? thanks
    LVL 57

    Accepted Solution

    No I am stating the fact that AddModule is no longer supported.

    Rewrite is still supported and my guess will always be supported.  The Apache API changed in a way that AddModule is no longer needed and 2.0 dropped support for it.

    search on "AddModule"

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now