Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Apache 2 + mod_rewrite: rewrite not enabled?

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  "Could not connect to remote server"  
Author Message
klaus

External


Since: Aug 02, 2003
Posts: 1



(Msg. 1) Posted: Sat Aug 02, 2003 12:18 pm
Post subject: Apache 2 + mod_rewrite: rewrite not enabled?
Archived from groups: alt>apache>configuration (more info?)

Hello,

I am using Apache 2.0.43 (Win32) + PHP 4.3.0 with virtual hosts. Works fine.

As a newbie to mod_rewrite, I found tons of examples on how to write the
patterns + conditions but not that much on actually *enabling* mod_rewrite.

I have uncommented (i. e. made active) the LoadModule line in httpd.conf,
and I have extended my VirtualHost entry to read like this:

<VirtualHost _default_:920>
ServerAdmin webmaster RemoveThis @no_spam.smartXXL.com
DocumentRoot "D:/www/smartxxl.com/pub"
ErrorLog logs/smartxxl-com-error.log
TransferLog logs/smartxxl-com-access.log

RewriteEngine on
RewriteLogLevel 1
RewriteRule ^artikel_([0-9]+)_([0-9]+)\.html$ artikel.php?id=$1&rubrik=$2
</VirtualHost>

I have also redundantly generated an .htaccess with the "RewriteEngine on
...." stuff in it,
and I have a simple artikel.php file, waiting for requests for
artikel_0_0.html,
but Apache only returns a file not found error.

What do I have to do to actually enable mod_rewrite?

I do have a file C:\Program Files\Apache
Group\Apache2\modules\mod_rewrite.so in my installation. I have not compiled
Apache myself.

best regards

Klaus
XXL at smartXXL.com

 >> Stay informed about: Apache 2 + mod_rewrite: rewrite not enabled? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache URL rewrite peculiar case - Hi All, I have a generic website name eg: main.example.com. This website due to load balancing points to server server1.example.com. Now, server1.example.com processes the request and gives the output. The output is of form..

Common /cgi-bin/ area for all the Virtual Hosts (suexec en.. - .. On Apache 2.0.47, is it possible to set a default /cgi/bin/ area that can have files that will run for any of the virtual hosts? They all have separate User/Group ID's. Thanks in advance for any suggestions or comments. ...

ReWrite Rules - Hi, Currently my homepage is http://www.indigoclothing.com/index.shtml However I would now want my homeapge to be: http://www.indigoclothing.com/cgi-bin/page.cgi?d=1&page=homepage The dynamic page is different from the static one as the featured...

Rewrite to another Port - Hi, can somebody tell me how to make a ReWrite Rule for changing port ? Example: User calls sub.domain.com and rewrite should go to sub.domain.com:82 ? Thanks for your help. Bye, Fabian

mod rewrite question - I'm hoping I can get an answer to one of the 4 questions I've posted to this group over the last couple of months, so here goes. I'm serving XHTML files as application/xhtml+xml as they should be. But IE doesn't like this. What I wanted to do was us...
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]