1

我正在从 Apache 环境迁移到 Engine Yard 的 Orchestra PHP Cloud。我不知道如何适应我的应用程序的 URL 重写规则。他们为此提供的文档非常有限且基本,可以在此处查看:

https://support.cloud.engineyard.com/entries/21066927-orchestra-php-cloud-service-overview

这是我今天使用的 .htaccess。我很想就如何解决这个问题提供一些意见。

<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>
4

0 回答 0