![](/img/trans.png)
[英]scraperwiki: why does my scraper work for 1 url but not another?
[英]Why does my clean url not work inside another folder?
我正在嘗試為 SEO 獲取干凈的 URL。 我以前從來沒有這樣做過,我得到它為我的頁面文件夾中的簡單文件工作。
但是我的頁面文件夾中有另一個文件夾,稱為文件夾 b
我凌亂的 URL(在頁面文件夾內): index.php?page=
來自文件夾 b 的凌亂 URL:index.php?page=folderb/file
我從頁面文件夾中得到了一個干凈的 URL。 但是從我在文件夾 b 中的頁面中,我無法正常工作。
我已經嘗試將其他 .htaccess 文件添加到我的文件夾 b 文件夾並覆蓋根 .htaccess
我試圖在我的導航欄中使用域名/文件夾/名稱文件。
我嘗試過的所有東西都得到了 404 頁面
我的 .htaccess 文件
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ index.php?page=$1 [L,QSA]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+index\.php\?page=([^\s]+) [NC]
RewriteRule ^ %1? [R=301,L]
我希望從我的頁面文件夾中的文件夾 b 中獲得一個干凈的 url。
好的,所以我又試了一次,但情況更糟,我收到了此錯誤消息
Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.
看來我不能回頭了。 如果我切換到我的舊.htaccess
並更改我的 header.ZE13BFD7623EECEZ8409 中的 URL 則不會
我的其他頁面正在運行,但domainName/home/Server/https/fastcgi/rid/54/26/59315426/htdocs/folderB/file
中的所有頁面
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.