I tried setting redirects below, but I'm in trouble because I can't do what I want to do.
I can't write the part of "*" with a regular expression. Is there any way? ? ?
is as follows.
Redirects https://example.jp/contents/*** to https://example-new.jp/contents/*** <p>・ All contents and below are redirected</p> <pre><code>routes.php Router :: redirect ('/ contents/*', 'https://example-new.jp/', array ('status' =>302));
・ Nothing is redirected
routes.php Router :: redirect ('/ contents/(?! image /).+$', 'https://example-new.jp/', array ('status' =>302));
Reference URL: https://book.cakephp.org/2/en/development/routing.html#redirect-routing
Answer # 1
Solved the redirect process in index.php.
- how to set front-pagephp as a fixed page of display settings when using your own theme with wordpress
- php - i want to redirect to the original page after logging in
- php - i want to display an error or redirect
- php - about apache virtual host settings
- php - if you change the site address on wordpress, it will redirect to other domains without permission
- php - canceling the redirect
- php - regarding redirect processing in laravel
- php - i'm doing db settings
- php - separate the redirect destination when not logged in with laravel multi-authentication
- php - where to do it? redirect processing
- php - i want to determine the redirect destination from the value entered in form
- php - i want to redirect http to https with htaccess
- [windows 10/php settings] edited settings are displayed as unknown configuration settings in settingsjson
- php - about laravel homestead settings
- php - is it okay to share composerlock if the major versions of composer are the same?
- cakephp 4: i get an error when uploading a file without input
- php - i want to make a specific url an index
- regarding php arrow operators
- cakephp 2x support deadline and migration support
- i can't try catch with component of cakephp3
- php - how to get the values of a joined table?
- i want to remove error checking for specific fields on the cakephp controller side
- php - please tell me about the transfer cost of the framework
- i want to get the value of where specified in the query builder in cakephp3