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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:07:59+00:00 2026-06-13T04:07:59+00:00

Apparently there is a .htaccess file in my root directory which is messing up

  • 0

Apparently there is a .htaccess file in my root directory which is messing up all of my other sites that are in the directory.

I am currently using GoDaddy as my host.
This is the situation i am facing:

  • I have a main domain which is hosted directly in the root folder
    (ex. the index file would be found at /root/index.php)
  • I have some other domains hosted in folders inside the sub-directories
    (ex. root/domain2/index.php)
  • the other websites work correctly.
  • the main domain is built with concrete 5, the rest is built by basic php and html, using notepad++
  • subdomains for the other domains are not working since they do not have access in the .htAccess file
  • Now my question is that,
    Since I cannot erase the .htAccess file, how could I manage making the subdomains?
    The .htaccess file is used only for the concrete website but is controlling everything for some reason, is there any way to fix it?

    Thanks!

    P.S. I was not the one building the concrete website, i was building the rest of the domains, so i do not clearly know how to use it. All i know is that once i erase the .htaccess the subdomains are working and the main domain in the root directory only allow to visit the index page of it.

    Just to be clear, There is a main site, lets call it site 1, which is hosted in the main directory, and there are the other sites, ex. site2-site5, Which i want to make subdomains for and it is not working unless i erase the .htaccess file.

    I hope the question is clear enough, if not and more details are needed, please tell me.

    • 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-06-13T04:08:00+00:00Added an answer on June 13, 2026 at 4:08 am

      .htaccess files, by design, impact the directory they are placed in and all directories below them see http://httpd.apache.org/docs/2.2/howto/htaccess.html#what.

      With your current setup, you could create a new .htaccess in the htdocs folder for each subdomain and it would override the one higher up.

      Even better would be to serve the main domain and the subdomains from different parent directories. For example, say your current site is http://www.example.com, and your subdomains are site1.example.com and site2.example.com.

      I suggest something like this for your directory setup:

      /var/www/example.com/www/htdocs 
      /var/www/example.com/site1/htdocs
      /var/www/example.com/site2/htdocs
      

      This way, what is in use for http://www.example.com has no impact on site1.example.com.

      This would also prevent the possible duplicate content issues you’ll face with having subdomains inside the primary domain htdocs folder.

      For example, if your current setup is like this:

      /var/www/example.com/www  <-- main doman
      /var/www/example.com/www/site1 <-- site1.example.com
      

      Then going to http://www.example.com/site1 would show you the same content as going to site1.example.com, which would be a negative SEO signal to google.

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

    Sidebar

    Related Questions

    I have several sites listed in my htaccess file that I want banned but
    Apparently there is a database postgres that is created by default on each postgresql
    I read that SHA-1 is being retired from the FIPS 180-2 standard. Apparently there
    I've done some research and found that there apparently is an easy and understandable
    There are many similar questions, but apparently no perfect match, that's why I'm asking.
    I realize there are a few other questions about why Cygwin is apparently slow,
    I have a large XML file (~18MB). Apparently there is a tag somewhere in
    Apparently there's a problem with the nagivateToUrl function in Flex , namely that it
    I'm using the standard Zend /public/.htaccess file (shown below). At the moment I'm attempting
    Apparently there is a method that takes a char and returns a char: http://download.oracle.com/javase/6/docs/api/java/lang/Character.html#toLowerCase(char

    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.