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?
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?