[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Change default user's website URL "users/my_user"to"my_user"



"H.P. Stroebel" <hpstr@xxxxxxxxxxxxx> writes:

> > I have build a .htaccess (in ../sites/site#/web) with :

> > RewriteEngine on
> > RewriteRule ^/joe/(*) /users/joe/$1 [L]

> > But I get a 404 error on URL www.domain.com/joe while URL
> > www.domain.com/users/joe is OK

> silly question, but did you restart httpd ?

Well, a .htaccess file shouldn't require a restart of httpd at all.

Instead I think, that he missed a dot in his configuration there:

RewriteRule ^/joe/(*) /users/joe/$1 [L]

this should probably be:

RewriteRule ^/joe/(.*) /users/joe/$1 [L]

Quite important to remember punctuation, when working with regular
expressions.



-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/