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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:18:49+00:00 2026-05-28T02:18:49+00:00

There are many tutorials that talk about deleting index.php from the url. But I

  • 0

There are many tutorials that talk about deleting index.php from the url. But I want one step forward of it.

The link is: http://www.example.com/index.php/controller/function/single-variable
I want it like: http://www.example.com/some-name-that-i-put/single-variable

I cannot find a tutorial to do such a thing. How to do it?

  • 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-28T02:18:50+00:00Added an answer on May 28, 2026 at 2:18 am

    i wasnt sure whether you were wanting to do direct URL rewrites how CI does it out of the box or not… but this is how you do URL Rewrites:

    your class/function/id example.com/news/article/13 transposes to: example.com/class/function/ID

    http://codeigniter.com/user_guide/general/urls.html

    you can set this by doing two things:
    in your config.php file under application/config/ edit these:

    approx line 80: $config['uri_protocol'] = 'REQUEST_URI'; // i set this to request_URI as it always works for me..
    approx line 93: $config['url_suffix'] = '.html'; // this is optional, if you want /13.html
    approx line 62: $config['index_page'] = ''; //set this to blank
    

    create a .htaccess in http root:

    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt)
    RewriteRule ^(.*)$ /index.php/$1 [L]
    

    This is how you do URI Route changes

    if you want to change the organization of the URI you can use URI Routes defined in routes.php as described here: http://codeigniter.com/user_guide/general/routing.html

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

Sidebar

Related Questions

I see there are many tutorials about nhibernate but I cannot find a descent
There are many ways of doing debugging, using a debugger is one, but the
There are many tutorials that show you how to create the model instructions for
There are many tutorials that show you how to create an active tab effect
There are many tutorials out there and questions on SO that implement custom title
Today there are many talks about one page ajax ui (like facebook, twitter etc)
I know there are many tutorials out there for getting started in C. However
There are many techniques to enforce strong passwords on website: Requesting that passwords pass
There are many tools out there for writing and managing requirements, but are there
There are many different styles of variable names that I've come across over the

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.