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

  • Home
  • SEARCH
  • 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 167291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:14:56+00:00 2026-05-11T12:14:56+00:00

I use an installation of Xampp to test my files locally before I upload

  • 0

I use an installation of Xampp to test my files locally before I upload them to my web server. My web pages usually contain a lot of ‘hardcoded’ links, which means to test any links (or any forms etc) I need to change the hardcoded link to point to localhost, and then rechange it after I am done testing.

What I am looking for is a way to redirect an external url to point to my localhost folder, so I could set it as my website and then I would be able to make changes before I upload them. For example, if I were to enter ‘www.mysite.com/example/view.php’ in my browser, I would actually be looking at ‘localhost/example/view.php’.

Is such a thing possible?

  • 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. 2026-05-11T12:14:57+00:00Added an answer on May 11, 2026 at 12:14 pm

    Two solutions come to my mind:

    1. Use relative URLs (preferred)
    2. Add your external URL to your hosts file which can be found either in

      C:\WINDOWS\system32\drivers\etc\hosts (Windows)

      or

      /etc/hosts (Linux)

      Just add this line:

      http://www.mysite.com localhost

      Maybe you have to use your servers ip instead of mysite.com, I’m not sure right now

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

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer try using the landscape paper mode rather than portrait mode.… May 11, 2026 at 2:00 pm
  • added an answer Why not turn on error_reporting to get a more detailed… May 11, 2026 at 2:00 pm
  • added an answer You should be able to get this info via Request.ServerVariables('HTTPS')… May 11, 2026 at 1:59 pm

Related Questions

I use an XML file in App_Data in conjunction with a Repeater on the
I use an sql server regularly and have recently been getting frustrated by the
I use an SQL statement to remove records that exist on another database but
I use an external diff tool with Subversion (Beyond Compare rules!), and one of
If I use an URL like http://mysite/myfolder/myfile.dll , I get a dialog Do you
When I use an import such as <script type=text/javascript src=http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js djConfig=parseOnLoad:true, isDebug: true></script> I
How do I connect to an SQL Server remotely and administer my database objects?
I am in the process of setting up a complete web-development environment. For now,
I'm creating an automated installation of Office 2007. To customise your Office 2007 installation

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.