I have a url in my application:
www.example.com/application/30201:1234
I hit this URL its throws an error.
Forbidden
You don't have permission to access /application/30204:1234 on this server.
Main config for rules is as follow:
'rules'=>array( '<call:[0-9]+\\:[0-9]+>( sip<sip:(\\:[A-Za-z0-9]*@infocus\\.net)+>)?( email<email:(\\:[A-Z0-9a-z\\._%\\+\\-]+@[a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})+>)?'=>'user/index', '<controller:\\w+>/<id:\\d+>'=>'<controller>/view', '<controller:\\w+>/<action:\\w+>/<id:\\d+>'=>'<controller>/<action>', '<controller:\\w+>/<action:\\w+>'=>'<controller>/<action>', ),
I want to add rewrite rule in .htaccess which will redirect my application to user/index.
当您点击第一个网址时,在您的.htaccess文件中添加此行,它将重定向到下一个网址
Redirect /root_directory/first_url_path /root_directory/second_url_path
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.