Forum Moderators: phranque

Message Too Old, No Replies

Setting up mod_rewrite in apache

need help getting forum archiver working.

         

Dastar

7:47 pm on Sep 7, 2004 (gmt 0)

10+ Year Member



I've read through this forum which has alot of good info but am still stumped on a problem. I've had some experience with apache config but can't get mod_rewrite to work.

I am trying to get a phpbb2 archiver to work: <snip>

But I just get 500 errors at http://www.website.com/forums/archive after it's installation.

My site is setup as a virtual server in apache and mod_rewrite module is loading and not commented out. However, for the site in question do I need to put anything in the Virtual Server directive for my site other then RewriteEngine on?

This is the htaccess file the hack uses:

RewriteEngine On
RewriteRule ^.+\.html$ index.php [L]
RewriteRule ^.+\.htm*$ index.php [L]
RewriteRule ^member-.+\.html*$ index.php [L]
RewriteRule ^members.+$ index.php [L]
RewriteRule ^(.+)/$ index.php [L]

My site setup in apache:

<VirtualHost mywebsite.com wwWebmasterWorldebsite.com>
ServerAdmin webmaster@mywebsite.com
ServerName wwWebmasterWorldebsite.com
DocumentRoot /home/user/httpdocs
ScriptAlias /cgi-bin/ /home/user/cgi-bin/
CustomLog /home/user/logs/access_log combined
ErrorLog /home/user/logs/error_log
RewriteEngine On
</VirtualHost>

Any help will be appreciated. Thanks!

[edited by: jdMorgan at 7:59 pm (utc) on Sep. 7, 2004]
[edit reason] No personal/commercial URLs. See TOS. [/edit]

jdMorgan

8:04 pm on Sep 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dastar,

Welcome to WebmasterWorld!

Please take a few minutes to review our Terms of Service [webmasterworld.com] and the Apache forum Charter [webmasterworld.com].

You may find the information I posted in this recent thread [webmasterworld.com] about mod_rewrite configuration requirements to be useful in answering your question.

Jim

Dastar

8:09 pm on Sep 7, 2004 (gmt 0)

10+ Year Member



Sorry about that! I'll go check it out now. Thanks!