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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:30:44+00:00 2026-06-01T10:30:44+00:00

In config/routes.php <?php return array( ‘account/profile/change_password’ => ‘users/account/change_password’, ); I can access site.com/users/account/change_password and

  • 0

In config/routes.php

<?php
return array(
    'account/profile/change_password'  => 'users/account/change_password',
);

I can access site.com/users/account/change_password and site.com/users/account/change_password in the browser.

Is there a way to restrict it to the left side only (i.e. site.com/users/account/change_password)?

  • 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-01T10:30:46+00:00Added an answer on June 1, 2026 at 10:30 am

    Only by routing it specificly, for example by routing it to the same place as your _404_ controller. Of course you could also do it for the entire controller:


    'users/account(/:any)' => 'my/404/route',

    That way a direct call on this controller would always go to your 404.

    Of course if your routes end in a wild-card route like ':any' => 'catch/everything/$1' you don’t need to do this.

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

Sidebar

Related Questions

Please take a look at what's in my codeigniter config/routes.php file: $route['default_controller'] = primary;
Ive started a codeigniter site. my default controller is $route['default_controller'] = login; in routes.php
using CodeIgniter normally one has to specify the controllers in the config/routes.php file. This
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 wish to load some global defaults in my CakePHP application. E.g. app/config/defaults.php $config['site']['name']='FooBar';
I have a CakePHP project where I modified app/config/routes.php so that the root points
I'am using kohana 2.3 and i have a trouble with config/routes.php. I am redirecting
What I'd like to be able to do is: in config/routes.rb resources :posts in
ok i got this problem. i have this routes: (code bit change) File:/home/dotcloud/current/config/routes.js exports.routes

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.