You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <js...@gmail.com> on 2004/08/22 04:56:19 UTC

Re: [users@httpd] URL Rewriting on a uer by user basis

On Sat, 21 Aug 2004 18:49:56 -0700, saqib.n.ali@seagate.com
<sa...@seagate.com> wrote:
> > Look at mod_rewrite in the manual, and particularly the directive
> RewriteRule
> >
> > You can use %{REMOTE_USER} in the output pattern to include the actually
> 
> > authenticated user name, or you can instead provide a mapping from
> username
> > to some other string (RewriteMap directive)
> >
> 
> I dont think this will work. The URL rewrite happens before the
> authentication.

Actually, that depends on what context the RewriteRule's are in.  It
should work fine if they are in <Directory> sections or .htaccess
files.

And if it doesn't work, you can use %{LA-U:REMOTE_USER}, which will do
a sub-request to get the REMOTE_USER.

Joshua.

---------------------------------------------------------------------
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] Interpreting .htm extensions as .php extensions

Posted by David Blomstrom <da...@yahoo.com>.
I have a huge website made with Microsoft Frontpage,
with every page ending in a .htm extension. I copied
it and am splitting it into several smaller websites,
designed with Dreamweaver and PHP and hosted on Linux
servers.

In fact, I moved my original site to a Linux server,
too - which turned into a disaster. I didn't realize
that Linux servers are case sensitive.

Anyway, I think I remember hearing that you don't have
to give a web page a .php extension to use PHP on it;
you can set up something in Apache so that .htm
extensions are interpreted as .php.

Is this true? If so, can someone tell me what it's
called and direct me to a tutorial? Is it pretty
advanced, or is it something a newbie can handle?

I'm going to eventually shut this website down or
completely transform it. But it would help the
transition process if I could use PHP in managing
things.

Also, do you know if such a set up would conflict with
FrontPage extensions? This site makes extensive use of
Microsoft's webbots, or whatever they're called, which
require FrontPage extensions. So I wondered if I could
continue using MS webbots side by side with any PHP
functions I want to add.

Thanks.


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

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