httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject Re: [users@httpd] .htaccess Redirection
Date Mon, 28 Jul 2008 23:40:49 GMT
On Mon, Jul 28, 2008 at 5:52 PM, Alberto García Gómez
<alberto@ipimtzcm.rimed.cu> wrote:
> I had this conf in my httpd.conf, in the VirtualDirectory of one website:
>
> RewriteEngine On
> RewriteLogLevel 9
> RewriteRule ^/.*\.html$ /index.php?$1 [L]
> RewriteRule ^/.*\.htm$ /index.php?$1 [L]
>
> And I need to create a .htaccess file to work identical. I had try but
> nothing work :-(
>
Add an appropriate RewriteBase
Strip off "^/.*" from your rules
Figure out if you want to rewrite to "/index.php" or "index.php" (of
if this goes in documentroot, just drop the /)

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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


Mime
View raw message