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

  • Home
  • SEARCH
  • 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 1012243
In Process

The Archive Base Latest Questions

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

I am using the following routing rule in my codeigniter project’s routes.php file: $route[‘manage/(:any)’]

  • 0

I am using the following routing rule in my codeigniter project’s routes.php file:

$route['manage/(:any)'] = "manage/item_lookup/$1";

this redirects anything after manage in the url to the item_lookup function as a variable. Everything after the manage bit is a text string from a database which is then urlencoded i.e.

the page "some page title" becomes "manage/some+page+title"

However the variable passed to the item_lookup function by codeigniter is “some_page_title”. The spaces are getting encoded as underscores instead of plus signs.

is there some way to force php to urlencode spaces to underscores or tell codeigniter to use plus signs?

Thanks, Diarmuid.

  • 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-16T09:55:00+00:00Added an answer on May 16, 2026 at 9:55 am

    If you put spaces in your URL’s they will be converted. Use the url_title() to create proper URL slugs, then lookup your page based on that slug.

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

Sidebar

Related Questions

I have the following routing set up in my app (forms belong to a
I'm using the following script to post to and endpoint, it's hitting the breakpoint
I have the following struct in C++: struct routing_entry { unsigned long destSeq; //
I am rewriting our company website in cakephp, and need to find a way
This is weird and I'm not sure who the culprit really is. I'm doing
I'm building an APS.net MVC 2 app, where I have a parent table and
I'm creating a multi-tenancy web site which hosts pages for clients. The first segment
I have a web application which will return a user id based on the
this is my first post on this website, but I'm all the time getting
I am working on a RoR website and would like to handle server errors

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.