クライアント向けのアプリに取り組んでおり、サイトにはいくつかのワードプレスブログがあり ます http://www.chasethepaper.com
ルートでは、htaccess ファイルは
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(yumninja_app_1_0|yumninja_app_1_0/.*)$
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
ルート内に、というフォルダーがあります
'yumninja_app_1_0'
「ap」フォルダー内にhtaccessがあります
http://chasethepaper.com/yumninja_app_1_0/api/にアクセスした場合
インデックスページが表示されますが、これは正しいですが、
http://chasethepaper.com/yumninja_app_1_0/api/getReviews wordpress 404 を返します
これは、api フォルダー内の htaccess ファイルです。
RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess filwe.
#
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/(yumninja_app_1_0|yumninja_app_1_0/.*)$
RewriteRule ^(.*)$ index.php [QSA,L]
<IfModule Mod_php.c>
php_value upload_max_filesize 10M
php_value post_max_size 20M
php_value memory_limit 32M
</IfModule>
なぜこれが機能しないのか本当にわかりません。数日前のことです。同じフォルダー構造を別のサーバーにコピーし、正しく機能したため、/getReviews が有効であることはわかっています http://javadash.com/yumninja_app_1_0/api/getReviews