1
我有我的API位於htaccess的改變位置和重定向所有請求
/public_html/old/app/index.php
在這個
/老/應用程序有一個.htaccess中
Options -MultiViews -Indexes
SetOutputFilter DEFLATE
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
</ifModule>
不,我想移動我的應用程序到另一個位置
/public_html/v1/app/index.html
我應該怎麼添加到上面htaccess的重定向從/老/ app文件夾的所有來電/ v1/app?
感謝這部作品在瀏覽器的罰款,但應用程序引發錯誤:( – Zalaboza
瀏覽器的工作原理相同的方式與任何其他Web客戶端它只是發送。一個Web請求到服務器,你得到什麼錯誤? – anubhava
錯誤與空狀態,並沒有反應:(,如果你得到如果Cors不正確。 – Zalaboza