I need .htaccess file for a problem. I have two websites one is wordpress and one is in laravel i just want if i write simple domain example.com it will redirect to wordpress but if i write example.com/login it should redirect to laravel site. Can anyone help me Currently i am using .htacess
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /portfolio/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
One thing can be done in an easy way.
Now you can browse your site directly to the WordPress and "YourSite.com/login" as Laravel Login page.
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.