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

dmmcintyre3

macrumors 68020
Original poster
Mar 4, 2007
2,131
3
I would like to make /~dmmcintyre3/(rest of the url) on my server show /photos/(rest of the url) in the address bar.

I am using the Mac OS X 10.5.8 default apache with PHP, .htaccess in the folder enabled and mysql installed.
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
From the .htaccess file,
Code:
RewriteEngine On
RewriteRule ^~dmmcintyre3/(.*)$ /photos/$1
I think this will work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.