Solved

Apache Rewrite Mod: simple rule doesn't work

Posted on 2013-12-03
1
491 Views
Last Modified: 2013-12-03
I have a simple .htaccess:
RewriteEngine on
RewriteRule ^alice.html$ bob.html

Open in new window

Apache 2.2.3 config:
<VirtualHost *:81>
    DocumentRoot /var/www/domain.com
    ServerName domain.com
    ErrorLog logs/domain.com-error_log
    CustomLog logs/domain.com-access_log common
    RewriteEngine On
    RewriteLog logs/rewrite.log
    RewriteLogLevel 9
</VirtualHost>

Open in new window

http://192.168.10.150:81/bob.html is returned normally, but http://192.168.10.150:81/alice.html doesn't get rewritten and shows a not found error. Why?
Thank you.

Rewrite log:
192.168.10.100 - - [03/Dec/2013:15:06:06 +0600] [192.168.10.150/sid#8f045f0][rid#9824cc0/initial] (2) init rewrite engine with requested uri /alice.html
192.168.10.100 - - [03/Dec/2013:15:06:06 +0600] [192.168.10.150/sid#8f045f0][rid#9824cc0/initial] (1) pass through /alice.html

Open in new window

0
Comment
Question by:PavelTMN
1 Comment
 
LVL 1

Accepted Solution

by:
PavelTMN earned 0 total points
ID: 39692173
I forgot to add AllowOverride all.
0

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

21 Experts available now in Live!

Get 1:1 Help Now