I have a .htaccess code which is given below.
RewriteCond %{HTTP_HOST} ^app.vdsta\.com$ [NC]
RewriteCond %{REQUEST_URI} /admin-panel
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^admin-panel(?:/(.*))?$ /staging/admin-panel/$1 [L]
RewriteCond %{HTTP_HOST} ^app.vdsta\.com$ [NC]
RewriteRule ^((?!((vdsta_app/website)|(staging/admin-panel))/).*)$ /vdsta_app/website/$1 [L,NC]
The issue is when I type the URL https://app.vdsta.com/admin-panel it leads me to a blank page. But when I just add a slash like this: https://app.vdsta.com/admin-panel/, it works fine.
So how can I set in .htaccess so that when I type https://app.vdsta.com/admin-panel it will redirect to https://app.vdsta.com/admin-panel/?
So how can i set in htaccess so that when i type "https://app.vdsta.com/admin-panel" and it will redirect to "https://app.vdsta.com/admin-panel"your both shown urls are looking fine, could you please correct them in your question once?admin-panelrule to something likeRewriteRule ^admin-panel/(.*)?/?$ /staging/admin-panel/$1 [L]once and try, make sure you clear your browser's cache and try it. Let me know how it goes then.