You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by A <jo...@yahoo.com> on 2004/08/21 22:28:23 UTC

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

Developers,

Something ha sbeen keeping me up all day and i ve been
bogged down without any hope of finding a fix.

What i would like to do is quite simple but i have
found nothing that helps.

I have a server which has authentication.  I want to
map the url requested to a predefined URL

say i access 

www.myHost.com
uName==paul  passwd==paul

i want to map this to 

www.myHost.com/paul

Can anyone help me - its driving me mad.





		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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


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

Posted by Joshua Slive <js...@gmail.com>.
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


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

Posted by Sa...@seagate.com.
> 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.

I don't it is possible to do what the original poster is trying to do.

Thanks.
Saqib Ali
http://validate.sf.net


---------------------------------------------------------------------
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] URL Rewriting on a uer by user basis

Posted by Alan Chandler <al...@chandlerfamily.org.uk>.
On Saturday 21 August 2004 21:28, A wrote:
> Developers,
>
> Something ha sbeen keeping me up all day and i ve been
> bogged down without any hope of finding a fix.
>
> What i would like to do is quite simple but i have
> found nothing that helps.
>
> I have a server which has authentication.  I want to
> map the url requested to a predefined URL
>
> say i access
>
> www.myHost.com
> uName==paul  passwd==paul
>
> i want to map this to
>
> www.myHost.com/paul

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)


-- 
Alan Chandler
alan@chandlerfamily.org.uk
First they ignore you, then they laugh at you,
 then they fight you, then you win. --Gandhi

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