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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:54:38+00:00 2026-05-16T06:54:38+00:00

I wasn’t sure what the title should be but its s simple concept but

  • 0

I wasn’t sure what the title should be but its s simple concept but I’m useless with .htaccess rewrites.

I currently have:

RewriteRule ^([a-zA-z0-9_-]+)/?$ index.php?page=$1

which will happily send all requests to my index and I can do what I want.

I have:

RewriteRule ^events/([a-zA-Z0-9-./]+)/?$ index.php?page=events/index&id=$1

For more intermit stuff..

But I want to say

If the url is “/mycms/…” Send use to %{HTTP_HOST}/cms and stay there…

Can anyone help? my ‘catch all’ rule keeps fecking it up.


Edit I Got this to work wonderful

RewriteRule ^mycms([a-zA-Z0-9-./]+)?$ /cms$1 [L]

RewriteCond %{REQUEST_URI} !^/cms 
RewriteRule ^([a-zA-z0-9_-]+)/?$ index.php?page=$1

Now I write http://localhost/mycms and will head off to http://localhost/cms

I still want to mask the ‘/cms/’ folder though… o_O

  • 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-16T06:54:38+00:00Added an answer on May 16, 2026 at 6:54 am

    You just need to place a rewrite before your catch all and use the L flag to prevent it being rewritten again, something like this should suffice.

    RewriteRule ^events/([a-zA-Z0-9-./]+)/?$ index.php?page=events/index&id=$1 [L]
    RewriteRule ^([a-zA-z0-9_-]+)/?$ index.php?page=$1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wasn't even sure how to title this right. I have a page that
I wasn't sure how to word this exactly. But I have a model that
I wasn't really sure how to title this, but basically I am having an
I wasn't sure what it was called, but I was trying to have a
Wasn't sure how to phrase the title but here is my problem: Here is
I wasn't sure exactly how to phrase the question Title. I have this block
I wasn't sure of the title, but I hope you will be able to
Wasn't sure how to title this, so please change it :) If I have
I wasn't really sure how to title the question, but consider the following lua
Wasn't quite sure how to word this but let's say I've used ssh to

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.