apache - htacces failing to remove index.php completely leaves /? in url -


my site went https , having trouble remove /index.php?/ urls.

when try open website so: example.com/links page redirects https://example.com/?/links cannot seem remove /? part. have tried many different approaches, not htaccess/regex hero. closest have come getting right. appreciated.

rewriteengine on rewriterule cache/ - [f] rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l,qsa] rewritecond %{the_request} ^[a-z]{3,}\s(.*)/index\.php [nc] rewriterule ^ %1 [r=301,l] rewritecond %{server_port} 80 rewritecond %{https} !on rewriterule (.*) https://%{http_host}%{request_uri} rewritecond %{request_uri} !=/favicon.ico 

rearrange rules this:

rewriteengine on rewritebase /  rewriterule cache/ - [f]  rewritecond %{the_request} ^[a-z]{3,}\s(.*)/index\.php [nc] rewriterule ^ %1 [r=301,l]  rewritecond %{server_port} 80 rewritecond %{https} !on rewriterule (.*) https://%{http_host}%{request_uri} [l,r=301]  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+)$ index.php?/$1 [l,qsa] 

make sure test after clearing browser cache.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -