When I access my site using www.example.com/blog
it redirects to example.com/?/blog
.
How can I remove the question mark, so that the redirection just goes to example.com/blog
?
My current .htaccess file:
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
/blog
(they are internally rewritten). Only if you made a direct request (not an internal rewrite) for/index.php?/blog
would it be externally redirect to/?/blog
- at least according to the code above. So, there would seem to be something else triggering this redirect, or you are seeing a cached response?