You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alberto García Gómez <al...@ipimtzcm.rimed.cu> on 2008/07/14 22:55:17 UTC

[users@httpd] Redirecting Problem (Wear)

Here's the problem

I had this config in the httpd.conf

RewriteEngine On
RewriteLogLevel 9
RewriteLog logs/website/www.website.com-rewrite_log
RewriteRule ^/(.*\.html)$ /index.php?$1 [L]
RewriteRule ^/(.*\.htm)$ /index.php?$1 [L]

But if I move this configuration from httpd.conf to .htaccess doesn't work

WHY? or WHAT I HAVE TO DO?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Redirecting Problem (Wear)

Posted by Krist van Besien <kr...@gmail.com>.
On Mon, Jul 14, 2008 at 22:55, Alberto García Gómez
<al...@ipimtzcm.rimed.cu> wrote:
> Here's the problem

> WHY? or WHAT I HAVE TO DO?

1) tell us what value "AllowOverride" has for the directory you drop
your .htaccess in. It is quite possible that .htaccess files are
completely ignored.
2) read about the difference between RewriteRule processing in
httpd.conf versus .htaccess, here:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#Solutions
you probably need to set RewriteBase.

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org