我在it..but周围搜索,没有找到solution.so,我发了这个问题。
我有一个.htaccess文件,我正试图在index.php上重定向网站。
示例:当用户键入demo.org/demo2/时,url重定向到demo.org/demo2/index.php。注意:index.php位于demo2目录中。
.htaccess file:
DirectoryIndex index.php index.html index.htm
php_value memory_limit 200M
php_value upload_max_filesize 200M
php_value post_max_size 200M 问题是url没有重定向。提前谢谢。
发布于 2013-09-13 06:13:02
你会想要这样的东西
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/demo2/?$
RewriteRule ^$ http://demo.org/demo2/index.php [L,R=301]
</IfModule>https://stackoverflow.com/questions/18779285
复制相似问题