Answer the question
In order to leave comments, you need to log in
Why is there a redirect to an address with a slash?
Site on MVC, with routing. I request the address in the browser:
audiophilesoft.local/software/audiophiles_software/foobar2000_by_audiophile
'/^\/(\w+)\/(\w+)\/(\w+)$/'
/software/audiophiles_software/foobar2000_by_audiophile/
Options -Indexes +FollowSymLinks
DirectoryIndex index.php
AddDefaultCharset utf-8
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301]
ErrorDocument 404 /errors/404.html
ErrorDocument 403 /errors/403.html
RewriteCond %{REQUEST_URI} !\/errors\/
# TODO: Remove PHP here - it's only for testing!
RewriteCond %{REQUEST_URI} !\.(js|gif|jpg|png|css|txt|ico|php)$
RewriteRule .* index.php [L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question