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/28 23:52:24 UTC

[users@httpd] .htaccess Redirection

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



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


[users@httpd] Re: [***SPAM*** Score/Req: 18.0/5.0] Re: [users@httpd] .htaccess Redirection

Posted by Alberto García Gómez <al...@ipimtzcm.rimed.cu>.
Please my friend, can you be more specifyc...I mean how the code will look.

Thanks and Regards.

----- Original Message ----- 
From: "Eric Covener" <co...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Monday, July 28, 2008 7:40 PM
Subject: [***SPAM*** Score/Req: 18.0/5.0] Re: [users@httpd] .htaccess 
Redirection


On Mon, Jul 28, 2008 at 5:52 PM, Alberto García Gómez
<al...@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




---------------------------------------------------------------------
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] .htaccess Redirection

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jul 28, 2008 at 5:52 PM, Alberto García Gómez
<al...@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