.htaccess

    0熱度

    1回答

    我想知道如何在維護模板下安裝我的站點。它包含這個文件和文件夾的: 的index.html 圖片(文件夾) 工具(文件夾) 我用下面的代碼在我.htaccess文件重定向到index.html,但它只顯示html內容。 RewriteEngine on RewriteCond %{REQUEST_URI} !/index.html$ RewriteCond %{REMOTE_ADDR} !^12

    1熱度

    1回答

    有沒有辦法將以下兩行合併成一行? RewriteRule . /pages/article.php [L] RewriteRule $ /pages/article.php [L] 由於它是一個類似的問題(htaccess的指令合併),我還需要幫助鞏固以下到一個單一的產品,以及:提前 SetEnvIfNoCase Referer "^http://www.example.com/" loca

    1熱度

    1回答

    我正在嘗試寫一個htaccess重定向,但它不能正常工作。 這是用於我的推薦地址,他們去錯了頁面 我想他們,當輸入的網址mysite.com/page?r=([a-zA-Z0-9]),它重定向到mysite.com/ ?r =([a-zA-Z0-9]) 我想將mysite.com/page?r=([a-zA-Z0-9])重定向到mysite.com/?r =([ A-ZA-Z0-9])(刪除頁)

    0熱度

    1回答

    任何人都可以幫我重寫這個嗎? 我有這些規則: RewriteCond %{HTTP_USER_AGENT} baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|showyoubot|outbrain|pinterest [NC,OR] RewriteCond %{QUERY_STRING} _es

    1熱度

    1回答

    我試圖通過顯示特定頁面來阻止瀏覽子目錄中的文件,同時阻止了兩個URL上的重複內容。 我有幾個文件的子目錄,例如: www.example.com/subfolderA/pageone.html www.example.com/subfolderA/pagetwo.html www.example.com/subfolderA/pagethree.html 等 我不希望用戶訪問子目錄本身(www.e

    1熱度

    2回答

    嗨我想更改當前的網址www.website.com/books.php?tk=3ba89ffd爲www.website.com/books/3ba89ffd但我的htaccess文件給我一個內部服務器錯誤。我正在使用WAMP 重寫模塊已打開。 這裏是我的.htaccess Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIP

    1熱度

    1回答

    上工作,我在我的.htaccess當前URL新是: http://localhost/www.zeeshan.com/details.php?p_id=999 如果我要顯示我的網址是這樣的工作爲我好。 http://localhost/www.zeeshan.com/details/999 我的.htaccess代碼是 Options +FollowSymLinks -MultiViews

    -1熱度

    1回答

    a:5:{i:0; s:362:「parse_ini_file()[function.parse-ini-file]:無法訪問/ home/iyurway2/public_html/includes/src/../../config/citruspay.ini parse_ini_file(/ home/iyurway2/public_html/includes/src /../../ confi

    0熱度

    2回答

    我失去了在正則表達式的問題結束。 我需要一個htaccess文件模式匹配不與 view 或 開始不 (.oet|.ttf,..) 結束,我可以讓一部分視覺路徑,但不是最終的部分。 測試觀點,我有: ^(?!view)(.*)$ 我試圖測試不與這樣的.eot結束,但它不工作: ^(.*)(?!.oet)$ 最後的測試中,我想應該看起來像這樣: ^((?!view)(.\*))|((.\*)(

    1熱度

    1回答

    沒有找到需要隱藏一個文件夾,同時加載像Uniimart1609/S/page.php到Uniimart1609/page.php 在linux <IfModule mod_rewrite.c> RewriteEngine on RewriteRule Home_Page.php$ S/Home_Page.php </IfModule> 重定向http://Uniimart1609/Hom