我一直很难编辑我的.htaccess文件来一起做这三件事.我已经能够分别得到每个部分,但我只是不明白逻辑流程如何使它们全部工作.
这是我在bluehost支持下使用演示集得到的最好的 http://helpdesk.bluehost.com/index.php/kb/article/000347
我感谢您解决此问题的任何帮助.
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
# Bluehost.com
# .htaccess main domain to subdirectory redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?sampleurl.com$
# Change 'subdirectory' to be the directory …Run Code Online (Sandbox Code Playgroud)