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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:05:17+00:00 2026-05-24T00:05:17+00:00

In my routes.php I have : $route[‘default_controller’] = bitcoin; and in my config.php I

  • 0

In my routes.php I have :

$route['default_controller'] = "bitcoin";

and in my config.php I have:

$config['base_url'] = 'http://localhost/bitcoin/';

$config['index_page'] = 'index.php';

here is my controller: http://www.pastie.org/2253458

When I try to go to the following, I get a 404 not found (but the 404 template looks different):

http://localhost/bitcoin/edit/
http://localhost/bitcoin/index.php/edit
  • 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-24T00:05:20+00:00Added an answer on May 24, 2026 at 12:05 am

    You didn’t say if you’ve removed or not your index with .htaccess, but if you didn’t, did you try using: http://localhost/index.php/bitcoin ?

    Or better, since it’s your default controller, just http://localhost ?
    What you’re doing is quite strange, I can’t understand if you’re in a subfolder called bitcoin (in case, it should be http://localhost/bitcoin/ to call the default controller, which is also called bitcoin but doesn’t need to be indicated in your URL).
    If you’re in root, You should rewrite your urls as: http://localhost/index.php/bitcoin/edit to call the edit() method of your default controller

    Edit:

    If you’re in a subfolder called bitcoin, your base url, with default controller, should be:
    http://localhost/bitcoin/ (which is the same as http://localhost/bitcoin/index.php/bitcoin)

    If you want to get the bitcoin method edit(), should be http://localhost/bitcoin/index.php/bitcoin/edit

    Also, try removing your .htaccess AT ALL and see what happens.

    Edit2

    Oh, one last thing: use CI_Controller and not CI_controller, if you’re on a OS where lowercase matters you might encounter some problems

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

Sidebar

Related Questions

I have the following in my config/routes.php file: $route['(:any)'] = dashboard/index/$1; This works as
I have the following route rule set in my config/routes.php: $route[add/url/(:any)] = add/url/$1/$2/$3; This
I have a route in my route.php : $route['admin/(:any)'] = 'ix/$1'; It routes URI
I have a this .htaccess rule for my lease form RewriteRule ^(lease)$ index.php?route=$1 [L]
Is it possible in CakePHP to have URL aliases in routes.php? Or by what
ASP.NET MVC routes have names when mapped: routes.MapRoute( Debug, // Route name -- how
I have a route: routes.MapRoute( Company, {id}/{name}.aspx, new { controller = Company, action =
I have these 2 routes : routes.MapRoute(Agenda, ConfigurationManager.AppSettings[eventsUrl] + /{year}/{month}, MVC.Events.Index(), new { year
So basically what I want to do is have my routes.php setup so that
I've created a new route for my site: $route['default_controller'] = welcome; $route['(:any)'] = welcome/index/$1;

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.