I am getting some problem for without trailing slash url. I searched in Google, but not able to get the exact result.
From Url : local.xxxx.com/stories
When I am trying with the above Url, It redirects to
To Url : local.xxxx.com/sapp/View//stories/
Htaccess:
DirectorySlash Off
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/app/View/%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}/app/View/%{REQUEST_URI} -d
RewriteRule ^ /app/View/%{REQUEST_URI} [L]
Now I am getting 403 Forbidden error. You don't have permission to access /app/View//storieson this server.
If I will add trailing slash, then its working perfectly. If there is no slash, we can add slash at the end of the url if there are no params.
Can any body suggest how can I achieve this.