Please my friend, can you be more specifyc...I mean how the code will look. Thanks and Regards.----- Original Message ----- From: "Eric Covener" <covener@xxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx> Sent: Monday, July 28, 2008 7:40 PMSubject: [***SPAM*** Score/Req: 18.0/5.0] Re: .htaccess Redirection
On Mon, Jul 28, 2008 at 5:52 PM, Alberto García Gómez <alberto@xxxxxxxxxxxxxxxxx> 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@xxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx