I seem to having an issue with my htaccess and not sure what the proper solution is. Hoping someone here might have an answer.
When I enter “domain.ca/bob”, I want to be redirected to “www.domain.ca/bob”. Instead, I get “www.domain.ca/index.php/bob”. Not sure why the index.php gets chucked in. Do I have to add something extra to remove the index.php segment? I am already using the remove index.php code in the htaccess.
RewriteEngine On
RewriteBase /
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
# Redirect for non-domain to www-domain
rewritecond %{HTTP_HOST} ^domain.ca
rewriterule ^(.*)$ <a href="http://www.domain.ca/$1">http://www.domain.ca/$1</a> [L,R=301]
# Other redirects below hereThanks!