Apache Rewrite Mod: simple rule doesn't work

Posted on 2013-12-03
Medium Priority
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

Open in new window is returned normally, but doesn't get rewritten and shows a not found error. Why?
Thank you.

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

Open in new window

Question by:PavelTMN
1 Comment

Accepted Solution

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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Watch the video to know the simple way to remove or recover or reset lost or forgotten passwords of Outlook PST file. With Kernel Outlook Password Recovery tool such operation is very easy to perform. It is a freeware with limitation to use with 500…
Suggested Courses

619 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