Information Technology Center, The University of Tokyo

Campus-wide Computing Research Division

Home > Campus-wide Computing Research Division > Services > WEB PARK > FAQ > ■Is it possible to change the settings of WEB PARK so that it is possible to access using URLs which includes a tilde (~) like http://webparkNNNN.sakura.ne.jp/~tilde?

■Is it possible to change the settings of WEB PARK so that it is possible to access using URLs which includes a tilde (~) like http://webparkNNNN.sakura.ne.jp/~tilde?


WEB PARK provides services using rental servers provided by Sakura Internet, and therefore we are not able make changes to the server settings. With regards to the setting such as that mentioned above, we request users to modify the setting for .htaccess to solve it.

A following is an example of the setting for .htacces

---
RewriteEngine On
RewriteRule ^~(\w+)$ /tilde/$1/ [P,QSA]
RewriteRule ^~(\w+)/(.*) /tilde/$1/$2 [P,QSA]
---

When you access http://webparkNNNN.sakura.ne.jp/~example using your internet browser once the above example has been set, the contents of webparkNNNN:/home/webparkNNNN/www/tilde/example/index.html will be displayed.