Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

digisavvy

macrumors newbie
Original poster
Oct 3, 2011
6
0
Hello all,
So I've got a home web server (mac mini, running Lion Server 10.7) and I've ensured apache/mysql/php/phpmyadmin are all installed and playing nicely.

Right now, to see a site, I have to navigate to this structure of URL: http://domain-name.ext/~username/website

That's okay, but I would like to make the URLs rewrite to http://domain-name.ext/website. The username will always be the same, so if I could make a rule that some how removes 'username' from the URL string that would be awesome.

What's the best way to achieve that? Is this a rewrite rule to be done in httpd.conf or .htaccess? Or is this some other apache config?
 

DustinT

macrumors 68000
Feb 26, 2011
1,556
0
This is the kind of stuff I like to be able to ask my webhost.. I'm such a lazy guy!
 

digisavvy

macrumors newbie
Original poster
Oct 3, 2011
6
0
This is the kind of stuff I like to be able to ask my webhost.. I'm such a lazy guy!

Hehe. Well, I guess I can't do that since I'm my own webhost... Though, I think you just gave me a good idea.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.