More information about the Underscore mailing list

[_] Any Apache PHP Wizards?

Ritesh Patel ritesh.patel at purplelight.com
Thu Jan 3 14:39:29 GMT 2008


   Having had a quick glance at mod user_dir, isn't that only for  
showing the html folders of existing user on the server rather than  
redirecting a parameter to a php script?  By all means correct me if  
I'm wrong.

   Might be an idea do it by checking if the parameter after the  
domain exists as a file or directory in a RewriteCond (using the -f  
and -d flags) and if it doesn't, then redirect that parameter to the  
user php script.

   Quoting andrew holway <andrew at moonet.co.uk>:

> Read up about mod user_dir and upgrade your apache!!!!!!!
>
> 2.2 is the current version.
>
> Ta
>
> Andy
>
> On Jan 3, 2008 8:16 AM, Sam Machin <sam at bs8.org.uk> wrote:
>> Hi _
>>
>> I'm trying to build a site/service and I want to be able to have
>> usernames ulrs, e.g. http://foo.com/sam
>>
>> I've worked out how to pass parameters as slashes in the URL eg
>> foo.com/user/sam where user is a php script but I'd like to do it on
>> the top level.
>>
>> Currently I've defined a custom 404 page in .htaccess and I'm using
>> the $_SERVER['REDIRECT_URL'] variable to get the username.
>>
>> However I'm rather aware that hacking the 404 isn't really an ideal
>> solution, anybody know how to do it properly?
>>
>> FYI I'm running apache1.3 on a MacOSX box and I've got root access.
>>
>> Rgds
>> Sam
>>
>> --
>> underscore_ list info/archive ->   
>> http://www.under-score.org.uk/mailman/listinfo/underscore
>>
>
> --
> underscore_ list info/archive ->   
> http://www.under-score.org.uk/mailman/listinfo/underscore
>