Re: Change from ~username to /username questions

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

 



Greetings Yehuda,


1.) You can try something likfe this for one url:

RewriteRule ^~blog/(.*)$ /site/legacy/users/blog/$1 [R=301,L]


2.) You can also play with this rewrite to make fit for you:

RewriteEngine On
#RewriteLog logs/rewrite.log # Uncomment for rewrite logging
#RewriteLogLevel 3 # uncomment for verbose logging
RewriteCond %{REQUEST_URI} ^/([^/]+)
RewriteCond /home/%1 -d
RewriteRule ^/([^/]+)(.*) /home/$1/public_html/$2


Thanks,
Otis


On Sun, May 4, 2014 at 10:54 PM, Yehuda Katz <yehuda@xxxxxxxxxx> wrote:
mod_userdir does not support this. You would have to create a symlink for each user.
Off the top of my head, you might be able to work around it with mod_rewrite, but I can't test any rules now, so I don't want to try writing one.

- Y


On Fri, May 2, 2014 at 2:18 PM, Rose, John B <jbrose@xxxxxxx> wrote:
Has anyone changed access to personal web sites from 


 to


And still use 

/home/username/public_html

As the home web directories?

If so, can you share your method?

Thanks



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux