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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:22:53+00:00 2026-05-30T17:22:53+00:00

My url used to be something like http://example.com/index.php/class/function/id I created .htaccess and adjusted config

  • 0

My url used to be something like

http://example.com/index.php/class/function/id

I created .htaccess and adjusted config file, now that the index.php is out of sight on every load. I would like to also hide “class” so that my url may only look shorter i.e http://example.com/function/id. I want this because sometimes my class name is not beautiful, I don’t want it to be there, thank you…..

  • 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-30T17:22:54+00:00Added an answer on May 30, 2026 at 5:22 pm

    You know you can rewrite just the class name with htaccess, right?

    RewriteRule ^prettyclass/function/([0-9]+)?$ uglyclass/function/$1 [L,NC]
    

    Otherwise you will have to specify the particular route per URI in the routes config…

    $route['some_function/:num'] = 'uglyclass/function/$1';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

url = http://example.com/file.xml data = urllib2.urlopen(url) data.read() The question is, when exactly will the
URL url = new URL(http://www.example.com/comment); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod(POST); Is connection.setRequestProperty(key,
I have a web application which uses URLs that look like this: http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a (The
I used to have PHP websites and using url rewriting on picture to have
URL url = new URL(http://twitter.com/statuses/update.xml); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); String cridentials =
Check out what StackOverflow does: http://stackoverflow.com/questions/8933768/c-sharp-boolean-outside-method-wont-read The URL works without the final decorator, that
URL: http://en.wikipedia.org/w/api.php?action=parse&prop=text&page=Lost_(TV_series)&format=xml This outputs something like: <api><parse><text xml:space=preserve>text...</text></parse></api> How do I get just the
I was used to putting id's in the URL to map to an item
Are there any commonly used patterns in Javascript for storing the URL's of endpoints
What is the technology used here? (don't worry, its not porn despite the url)

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.