You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Scott Taylor <sc...@bigfoot.com> on 2004/01/29 02:25:12 UTC

[users@httpd] rewrite rule

I would like to rewrite every file like domain.com/page to 
domain.com/page.php  I was trying to do it like this, but it is not working:

RewriteRule ^/(.*)$ /$1\.php

Best Regards,

Scott Taylor





---------------------------------------------------------------------
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] rewrite rule

Posted by Jonas Eckerman <jo...@frukt.org>.
>  I would like to rewrite every file like domain.com/page to
>  domain.com/page.php  I was trying to do it like this, but it is
>  not working:

You mean it makes the server stop brewing coffee? Or?

Have you tried with the PT flag?

/Jonas

-- 
Jonas Eckerman, jonas_lists@frukt.org
http://www.fsdb.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