2014-02-19 38 views
0

我們有一個magento網站www.oursite.in,當我使用http://www.oursite.in/mobiles.html時,它工作正常(即index.php不是/不會出現在url中)。https url需要url中的index.php。如何解決這個問題?

但是當我輸入https://www.oursite.in/mobiles.html,它說404找不到錯誤https://www.oursite.in/index.php/mobiles.html工作正常。

我該如何在.htaccess中重寫https url的url?

magento是否還有其他配置更改?

有人可以爲我點這個嗎?

+0

你好Shathish,請轉到管理員>系統>配置>網站在安全和安全的網址更改基地址到https://www.oursite.in/ –

+0

@AmitBera:我已經做到了。 – Shathish

回答

1

下面解釋的htaccess對於HTTPS,雖然它是笨開發者,但它會爲Magento的工作環節..

http://ellislab.com/forums/viewthread/86113/

RewriteRule ^(.*)$ index.php/$1 //此行會隱藏的index.php從URL

<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> 
相關問題