簡體   English   中英

子文件夾的 Wordpress Htaccess 問題

[英]Wordpress Htaccess problem with subfolder

我必須使用 WordPress 在站點的子目錄中安裝一個程序。

我已經在其他網站上用 WordPress 做了同樣的事情,沒有任何問題。

我對這個網站有問題,當我轉到頁面地址時,它顯示“找不到頁面”。 該站點是“www.sogenit.com”,子目錄是“ecobonus”。 “www.sogenit.com/ecobonus”

我認為這是一個 .htaccess 問題 有人可以幫助我嗎? 下面我附上.htaccess文件的內容

.htaccess 文件的內容


RewriteEngine On #created by aruba do not touch this file!

#ATTENTION: Remove file index.(php|html|htm)

RewriteBase /

RewriteCond %{REQUEST_URI} !^/drupal/.*$

RewriteRule ^(.*)$ /drupal/$1 [L]

你可以這樣使用:

# BEGIN WordPress
RewriteEngine On
RewriteBase /subdirectory-name/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subdirectory-name/index.php [L]
# END WordPress

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM