redirect all links to include a segment in front of the main url

Jordo

New Member
I setup a local website using mamp, there are other sites I run in development on the same mamp install and I use links on my site like \[code\]<a href="http://stackoverflow.com/about">About</a>\[/code\]It will direct the user to http://localhost/about, but I need it to direct to http://localhost/chuck/hostchuck is the folder that this site is within, file path: /Applications/MAMP/htdocs/chuckIs there a way in the htaccess file that any link automatically is redirected with /chuck plugged into the front of the url?I hope this is possible, so I do not have to go thru every file and put /chuck in front of (for this example), /about, to make it http://localhost/chuck/about
 
Back
Top