Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess https url需要url中的index.php。如何解决这个问题?_.htaccess_Magento_Url Rewriting - Fatal编程技术网

.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:我已经这样做了。