rewrite

    1熱度

    1回答

    htaccess的WordPress的重寫規則我想,隨着 http://www.laurapeckauskiene.com/dt_gallery_category/ 開始被改寫爲 http://www.laurapeckauskiene.com/ 一切(dt_gallery_category是歸檔) 所以我必須在htaccess的: # BEGIN WordPress <IfModule mod

    1熱度

    1回答

    我已經嘗試了幾個如何做到這一點的例子,但沒有任何工作,我擔心這是因爲查詢字符串是基本URL的一部分。 這裏是我想要做什麼: 重定向http://example.com/?from=TEST_1 - >http://example.com/foo 重定向http://example.com/?from=TEST_2 - >http://example.com/bar 這是我曾嘗試: RewriteE

    0熱度

    1回答

    我想要/需要重寫所有產品網址 例如三種語言的產品網址。 mainurl.com/en/outdoor/wood-table mainurl.com/de/außenbereich/holz-tisch mainurl.com/it/esterno/tavolo-legno 我想/需要什麼網址是: mainurl.com/products/en/outdoor/wood-table mai

    -1熱度

    1回答

    我有以下頁面: http://localhost/?news=19&page=2 我想重寫這一點,以便它去那種如下 http://localhost/news/19/page/2 這是我的.htaccess文件,但我的代碼不工作:( RewriteEngine ON RewriteBase/ RewriteRule ^page/(.*)$ /?page=$1 [L] RewriteR

    0熱度

    1回答

    我正在使用nginx。我想重寫網址。我的代碼: rewrite ^/([^/]*)_([a-zA-Z0-9]{9}).html$ /watch.php?vid=$2 last; 網址示例: http://104.238.130.170/hudson-against-the-grain-video_14a4e06f8.html 但是當我保存文件,然後重新啓動nginx的服務器,我得到錯誤: [e

    0熱度

    1回答

    我正在使用一個框架,將所有URL重寫爲index.php,除非該文件或文件夾實際存在。 # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite al

    0熱度

    1回答

    好吧,所以我正在Silverstripe CMS開發一個站點,它在其中一個頁面上使用錨鏈接。事情是在Silverstripe中有一個正在進行的重寫,在你的鏈接中加入了斜槓。 所以在docs它解釋說,你可以把這個在你的YAML哈希之前禁用斜線:http://doc.silverstripe.org/en/developer_guides/templates/how_tos/disable_ancho

    0熱度

    1回答

    所以我想重寫下面的例子。環顧四周,但找不到與此場景匹配的正確帖子。 這裏是佈局的老頁面的列表: www.url.com/directory www.url.com/directory/page1.html www.url.com/directory/page2.php 我試圖通過htaccess的重寫方式如下: Redirect 301 /directory /newdirectory

    0熱度

    1回答

    你好,我有以下結構http://localhost/index.php?a=$var1&b=var2&c=$var3 我想,當有人去http://localhost/$var1/$var2/$var3 將其更改爲他們被髮送出去http://localhost/index.php?a=$var1&b=var2&c=$var3

    1熱度

    1回答

    我想構建一個mod_rewrite URL,但似乎無法使查詢字符串與mod_rewrite規則一起工作。 我的代碼是: RewriteEngine On Options -Multiviews Options -Indexes Options +FollowSymLinks RewriteBase/ RewriteRule ^(.*)/$ $1 [L,R=301] RewriteRu