[英]Page not found error when using plus“+” sign in the path aliases
我正在嘗試使用url別名作為test+node
創建一個新的簡單test+node
。 當我保存節點時,頁面未顯示該節點,URL更改為
http://server/packets/test%2Bnode
但它只顯示以下錯誤
Page not found The requested page "/packets/test%2Bnode" could not be found.
誰能幫我解決這個問題...
Drupal希望阻止“ +”字符成為空格。 Drupal對字符進行編碼,無法識別URL別名。
在此處查看此線程: https : //drupal.stackexchange.com/questions/125156/page-not-found-error-when-using-plus-sign-in-the-url-alias
最好避免在別名中使用“ +”之類的字符,但最好嘗試在啟用了干凈網址的情況下將其添加到您的.htaccess文件中:
RewriteEngine On
RewriteCond %{THE_REQUEST} %2B
RewriteRule ^(.+)$ %{REQUEST_URI} [R=301,L,QSA,NE]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.