.htaccess https url需要url中的index.php。如何解决这个问题?
当我使用.htaccess https url需要url中的index.php。如何解决这个问题?,.htaccess,magento,url-rewriting,.htaccess,Magento,Url Rewriting,当我使用http://www.oursite.in/mobiles.html,它工作正常(即index.php不是必需的/不会出现在url中) 但是当我输入https://www.oursite.in/mobiles.html,它表示404未找到错误https://www.oursite.in/index.php/mobiles.html工作正常 如何在.htaccess中重写https url的url 或 magento中是否有其他配置更改 有人能帮我解释一下吗?下面的链接解释https的ht
http://www.oursite.in/mobiles.html
,它工作正常(即index.php不是必需的/不会出现在url中)
但是当我输入https://www.oursite.in/mobiles.html
,它表示404未找到错误https://www.oursite.in/index.php/mobiles.html
工作正常
如何在.htaccess中重写https url的url
或
magento中是否有其他配置更改
有人能帮我解释一下吗?下面的链接解释https的htaccess,虽然它是为codeigniter开发者提供的,但它将对magento起作用
RewriteRule^(.*)$index.php/$1
//此行将从url中隐藏index.php
<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymLinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
重新启动发动机
选项+FollowSymLinks
重写基/
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1
ErrorDocument 404/index.php
hello Shathish,请转到“安全和安全url”下的“管理”>“系统”>“配置”>“Web”将基本url更改为@AmitBera:我已经这样做了。