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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:24:39+00:00 2026-06-14T23:24:39+00:00

How can i change the following url from: http://localhost/autoquest/index.php/autos?category=camry to: http://localhost/autoquest/index.php/autos/camry using codeigniter. The

  • 0

How can i change the following url

from:

http://localhost/autoquest/index.php/autos?category=camry

to:

http://localhost/autoquest/index.php/autos/camry

using codeigniter. The category option camry comes from a select option such as:

<select id="category" name="category" onchange="this.form.submit()">
    <option value="camry">car 1</option>
    <option value="octavia">car 2</option>
    <option value="volvo">car 3</option>
</select>

I think the second url is better in terms of SEO am i wrong?

Thanks all.

  • 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-14T23:24:40+00:00Added an answer on June 14, 2026 at 11:24 pm

    Have you enabled query strings in your Codeigniter Config?

    That’s application/config/config.php around line 155:

    $config['enable_query_strings'] = FALSE;
    

    If this is set to FALSE you shouldn’t be able to use query strings as you suggest you already are, but in fact use the default search-engine friendly segment based URLs. As stated in the userguide. So you URL automatically would be

    http://localhost/autoquest/index.php/autos/camry

    instead of

    http://localhost/autoquest/index.php/autos?category=camry

    For more information please take a look at the fantastic userguide here: http://ellislab.com/codeigniter/user_guide/general/urls.html

    Hope this helps.

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

Sidebar

Related Questions

How can I use a Servlet Filter to change an incoming URL from http://nm-java.appspot.com/Check_License/Dir_My_App/Dir_ABC/My_Obj_123
I am trying to use apache-rewrite rule to convert the below URL: http://localhost/foo/bar/news.php?id=24 Into
I have the following html structure (which is generated and I can't change): <table
i have the following xml. legacy: xml (can't change because it is externalize). <bean
I understand that I can change a sql table using the follow sp: EXEC
I am testing the security of my website. I am using the following URL
Using: org.apache.http I am using the following code to download files, most of the
How can I change the following code to make the text field a textarea
I am working to change the HTTP client in an application from Commons HTTP
I'm using .NET MVC 2 If an incoming request contains the URL: http://something.com/1234 where

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.