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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:45:09+00:00 2026-06-14T12:45:09+00:00

I have an app that allows users to create and build a site. Let’s

  • 0

I have an app that allows users to create and build a site. Let’s call it system.com. When a user creates a site with a domain (say domain.com) they have forwarded to our nameservers, it creates folders and adds their domain to our server through the cPanel API to a folder like system.com/[user id]/[site id]/. In that folder there’s an index.php file and a .htaccess file that reads:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/$ index.php?page=$1 [L]

I won’t go into too much detail about how it works from there, but basically the user can create pages like domain.com/something/something-else/. The “something” folders obviously don’t really exist and our system just picks them up from the htaccess and goes from there.

My problem is that domain.com/something/something-else/ works but domain.com/something/something-else returns a 404. I’ve been doing research and trying many things but can’t seem to get it working. Any ideas? Thanks in advance.

Edit:

I should have mentioned what I’ve tried so far. I’ve tried changing the rewriterule to work regardless of the trailing slash, like so:

RewriteRule ^(.*)(?/$) index.php?page=$1 [L]

And other variations of that.

I’ve also tried different methods of forcing a trailing slash but none of those worked either.

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

    I think you want your rule to look like this:

    RewriteRule ^(.*)/?$ index.php?page=$1 [L]
    

    Which says : “Any number of any characters optionally followed by a slash should be changed to index.php?page=$1 where $1 is the characters you found before the slash. Also disregard any other rules that you find if this one matches.”

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

Sidebar

Related Questions

I have a topics app that allows users to create topics. For each individual
I have a rails app I am working on that allows users to create
I have an app that allows users to upload large data files and then
I have an iPhone app that allows users to record videos and I'd like
We have a WPF app that allows our users to download encrypted content and
I have an app that allows the user to choose an image, at design
I have an app that allows the user to choose a picture from their
I have a small tab on an app that allows user to lookup a
I have an app that allows you to create Home shortcuts to a specific
I have an app that allows users to enter a project into a database.

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.