[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 512
  • Last Modified:

How to create rewrite rules on Fedora 5 Apache


in wordpress

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


my local office url is http://192.168.xxx.xxx/wordpress

anypost will be reflected as http://192.168.xxx.xxx/wordpress/?post_id

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


LoadModule rewrite_module modules/mod_rewrite.so
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!
  • 2
1 Solution
AddModule was removed with Apache V2.0.  Get rid of it.
shortandsharpAuthor Commented:
Are you implying apache 2.0 no longer supports rewrite?

so, how do I fixed my problem? thanks
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now