Page 1 of 1

I think this is related to URL-Rewriting but not sure

Posted: Sat Dec 08, 2007 12:56 pm
by legend986
I am trying to build my personal website in my university webspace but because they are not offering mysql, I'm planning to install Joomla on my own server. People would be accessing my website as:

Code: Select all

http://www.university-name.com/~username
But my actual website will be stored at

Code: Select all

http://www.mywebserver.com/personal/
I wanted to know if this is possible:

Whenever someone visits my personal page through the university link, all the links on my personal website should be relative links i.e. if someone wants to visit the about us page in my personal page it should be http://www.university-name.com/~username/about.html and whenever someone wants to visit through a direct link, anything is fine. There are only a few links on my website so even some manual solution will be appreciated. Is this possible?

Posted: Sat Dec 08, 2007 1:34 pm
by John Cartwright

Code: Select all

RewriteEngine On
RewriteRule ^~([a-zA-Z0-9_-]+) /personal/?username=$1
Not sure this is exactly what you want, but it should get you started. Simply matches usernames with a-Z 0-9 _ - characters and sets the $_GET['username']

Posted: Sat Dec 08, 2007 3:59 pm
by hgmmy
Here's a couple of links you might find helpful, and note that in order to do what your wanting to do your school will need mod_rewrite enabled...

http://www.yourhtmlsource.com/sitemanag ... iting.html
http://www.workingwith.me.uk/articles/s ... od_rewrite

Posted: Sat Dec 08, 2007 9:57 pm
by RobertGonzalez
I wouldn't know where to start with this, since you are wanting to serve files from one server through a URL of another. Can you upload files to the UNI server and cURL to your own, or something like?