由网友(摇滚戰警)分享简介:我已经从一个服务器到另一个服务器迁移我的网站。现在,它显示出它的登陆页面,但是当我点击任何链接则显示页面的未找到。如果我手动把的index.php 我的网站,然后它的工作。I have migrate my site from one server to another server. Now it showing...
我已经从一个服务器到另一个服务器迁移我的网站。现在,它显示出它的登陆页面,但是当我点击任何链接则显示页面的未找到。如果我手动把的index.php
我的网站,然后它的工作。
I have migrate my site from one server to another server. Now it showing its landing page, But when i click on any link then it showing page not found. If i manually put index.php
with my site then its working.
例如:
mysite.com 此页面是开放完美。
mysite.com/about 此页面显示错误。
mysite.com/index.php/about 本页面还在。
在我的网站上的每一个环节是没有的index.php
On my site every link is without index.php
我应该怎么办?在Magento或.htaccess文件
what should i do?? in magento or .htaccess file
推荐答案
创建.htaccess文件的根文件夹,用下面的内容
Create .htaccess file in root folder, with following content
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)(?<!.php)$ index.php/$1 [QSA,L]
相关推荐
最新文章