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



Thank you for your help, but, I have tried your solution, with a
"RewriteRule" directive in a .htaccess file, but ... unsuccessfully (I have
a 404 Error with URL www.domain.com/joe, while www.domaine.com/users/joe is
OK :-(

Contents of the .htaccess (placed in directory /sites/site#/web) is :
RewriteEngine on
RewriteRule ^/joe/(*) /users/joe/$1 [L]

Why doesn't it works ???

Any help apreciated !

Best regards,

JP CAZARD


> because 'redirect' says to tell the browser to look someplace else for the
> url, you want to do it without telling the browser, which means you want
> to use rewrite , not redirect....
>
> something like this
>
> RewriteEngine on
> RewriteRule ^/joe/(*) /users/joe/$1 [L]
>
> [...]

>> On a website www.domain.com (directory site# on the server) if I
>>create a user "joe" :
>>
>> 1- His website URL is www.domain.com/users/joe
>> 2- His website is physically in directory site#/users/joe
>>
>> Is there a GOOD solution to change the URL of joe website from
>> www.domain.com/users/joe to www.domain.com/joe
>>
>> At this time, I use a .htaccess file with "redirect joe users/joe ", BUT
on
>> the client browser, URL www.domain.com/joe is replaced by
>> www.domain.com/users/joe and I don't want that ...