Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1039533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:06:41+00:00 2026-05-16T15:06:41+00:00

I setup a local website using mamp, there are other sites I run in

  • 0

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 <a href="/about">About</a>

It will direct the user to http://localhost/about, but I need it to direct to http://localhost/chuck/host

chuck is the folder that this site is within, file path: /Applications/MAMP/htdocs/chuck

Is 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:06:42+00:00Added an answer on May 16, 2026 at 3:06 pm
    RewriteEngine on
    RewriteRule (.*) /chuck$1 [nc,l]
    

    Basically, anything after the %{http_host} will be put after /chuck. This will redirect EVERYTHING to have /chuck in front of it.

    This will have to be put in the /path/to/htdocs folder. However, it will also make it impossible to visit any other site you may have hosted there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this membership site setup on my local machine using the ASP.NET membership
I'm trying to setup a local database on my laptop using python. I saw
I have just setup a new local site (localhost/pfb.net/) which has been cloned from
Our setup as follows: We have a local development server running Ubuntu, with a
Trying to setup a CodeIgniter based project for local development (LAMP stack), and once
I'm trying to setup a SQL database for a local program management and install
So I'm using this website: http://www.howtoforge.com/ubuntu_debian_lamp_server to setup LAMP on my Ubuntu Virtual Machine.
I have a local development webserver set up using Win7 and IIS7. I often
Currently, my local development environment is setup to be able to send out actual
On my local setup I have a load of different CakePHP websites. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.