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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:06:13+00:00 2026-05-23T05:06:13+00:00

This is my third question about htaccess. I should’ve made one single. But I

  • 0

This is my third question about htaccess. I should’ve made one single. But I thought this would be too big of a question.

This is used for my own CMS. :o)

My htaccess is:

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

Remove index.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

And what I would like to do is:

Remove /page/ from my URL, and just have for example: myurl.com/home

Right now my urls are: http://www.myurl.com/page/home or whatever title is given. Now, when people create new pages in the CMS, they maybe wan’t a page called: About us.
And what this will en up being is:

http://www.myurl.com/page/about%20us

How do I add “-” instead of %20?

  • 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-23T05:06:14+00:00Added an answer on May 23, 2026 at 5:06 am

    You can easy remove page/ from the .htaccess, but you have to ignore existing files and directories:

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [L]
    

    Your second problem has nothing to do with .htaccess. You have to link the page About us as /about-us/ instead of /about%20us/ (%20 represents a space), and if the page /about-us/ (index.php?page=about-us) is called just handle it as /about%20us/. So simply replace spaces with -.

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

Sidebar

Related Questions

first of all this is my third question about web services here and i
I know about this question: Which (third-party) debug visualizers for Visual Studio 2005/2008 do
I am going to totally re-ask this question. So this is one big edit
I have a question about best practices regarding how one should approach storing complex
Yeah, this is indeed my third or fourth question about jQuery UI Autocomplete. My
This is a two-part question about adding a third-party library (JAR) to an Android
My question is about this topic I've been reading about a bit. Basically my
In my previos question I asked about rounding time value to nearest third-minute. Well
This is probably a very basic question but I haven't found any detailed information
First, my question is not about password hashing, but password encryption. I'm building a

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.