Solved

Apache Rewrite Mod: simple rule doesn't work

Posted on 2013-12-03
1
507 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

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

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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