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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:35:48+00:00 2026-05-21T11:35:48+00:00

So, this is somewhat of a strange situation. I’m hosting a development server for

  • 0

So, this is somewhat of a strange situation. I’m hosting a development server for a person I’m working with in a subfolder of my website. Basically the file structure looks like this:

public_html/my_subfolder/public/index.php

So what I’m attempting to do is make it so that if a user types “www.mysite.com/my_subfolder” they are taken to the “public/index.php” page without the public subfolder appearing in the URL. It’s kind of silly that I’m still messing with this, considering it’s only a development server.

I’m just at the point where I’ve messed with it for so long I really want to get it to work now, so that, if nothing else, I’ll learn something. Any help would be 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-21T11:35:48+00:00Added an answer on May 21, 2026 at 11:35 am

    Try this rule in your .htaccess file:

    RewriteEngine on
    Options +FollowSymlinks -MultiViews
    
    RewriteCond %{REQUEST_URI} !^/my_subfolder/public [NC]
    RewriteRule ^my_subfolder/(.*)$ /my_subfolder/public/$1 [L,NC]
    

    This will redirect everything so make sure to serve your static files like js, css, images etc from my_subfolder/public as well.

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

Sidebar

Related Questions

I'm wondering if this is something somewhat simple, but I'm having a problem ONLY
Okey, this might seem a bit strange question so I will explain. Do I
In my WiX 3.5 project I'm including a wxs file via a link. I.e.,
This is more of a philosophical question than a technical one. I'm about 40
I am working with the Java Calendar class to do the following: Set a
I have a PyCharm 1.2.1 on Windows. I have to edit different branches of
I am having a specific problem with the JS event onclick and how it
I'm looking for the best way to search a string of alphabetical characters for
I want to install a software library (SWIG) on a list of computers (Jenkins

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.