Ubuntu 管理心得

搜尋此網誌

2023年11月14日 星期二

php cannot run inside drupal subdirectory

For example, if run the php files in /home/chiao/public_html/drupaldam10_from_9/dam/web/Check_PCM_v, then it will get "Forbidden You don't have permission to access this resource.
Apache/2.4.52 (Ubuntu) Server at localhost Port 80"
 
Edit /home/chiao/public_html/drupaldam10_from_9/dam/web/.htaccess, add one line as below.

...
#chiao, 20231114,
# --- Add the line
  RewriteCond %{REQUEST_URI} !/Check_PCM_v/[^/]*\.php$
# ----------------
  RewriteCond %{REQUEST_URI} !/core/[^/]*\.php
...

Done.

沒有留言:

張貼留言

網誌存檔