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 6794085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:10:45+00:00 2026-05-26T18:10:45+00:00

I currently have a domain/subdomain pointing to a folder called htdocs. When the exampledomain.com

  • 0

I currently have a domain/subdomain pointing to a folder called htdocs.

When the exampledomain.com is accessed I want it to get the files in /htdocs/dev/

Currently it gets the files in /htdocs/ and if the files that are in /dev/ they need to be
accessed with exampledomain.com/dev/

How can I do this? I don’t want to use a redirect. I don’t want this to reflect in the address bar. I also don’t want to change any server specifics as we’re on a shared platform. What can be done with .htaccess?

Thanks for your help! It is greatly appreciated.

  • 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-26T18:10:46+00:00Added an answer on May 26, 2026 at 6:10 pm

    The best and easiest way is just to change your pointer to point the domain to the /htdocs/dev/ folder. Shared hosting isn’t an issue for you even if you’re sharing hosting with a friend. Their root folder holds all the sub folders for the individual websites. Pointing your domain name to /htdocs/dev/ takes care of all your issues unless I’m reading the question wrong.. =)

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

Sidebar

Related Questions

I have a subdomain called sub.domain2.com which I want to point to domain1.com/folder/ I
I currently have a subdomain i need to keep in tact: www.sub.domain.com I also
Example current URL http://www.domain.com/subdomain/install/finish.php I use this code to get the current URL. $url
I have a subdomain setup as onlinedev.domain.com I need to use htaccess to rewrite
I have a domain http://abc.com and a subdomain http://sub.abc.com . I'm implementing single sign-on
I have a domain set up: www.domain.com, that runs a codeigniter website. I want
In my application I have a website on one sub-domain (dev.u413.com) and I use
I currently have this set up: xx.domain.com (CNAME)-> user.dyndns.org -> MY IP Currently I
I currently have a client that wants me to 'abstract' out a domain model
Currently I have solution A that contains a domain layer base and solution B

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.