url-rewriting

    3熱度

    1回答

    嗨同行開發者。 我正在寫一個混合網站,其中包含靜態網頁,如index.php,page1.php ...和一個Nibbleblog,安裝在靜態網站所在的頂級目錄中。 爲了在博客中啓用搜索引擎優化友好的URL,我已經添加到htaccess以下Nibbleblog推薦的重寫規則。 的RewriteBase /eurotint/new-euroting/app/是我目前的本地開發目錄 RewriteBa

    1熱度

    1回答

    假設我有一個在heroku上運行的應用,使用heroku的SSL,並且我有一個域讓我們加密DV SSL。 它會導致安全脆弱的,如果我使用的.htaccess功能重寫(不定向)上展示自己的域名在Heroku上的應用程序內容?既然我知道如果我們使用iframe或者重定向,如果兩個連接點都使用SSL加密,它就不會受到攻擊,但是如何重寫呢? P.S.我正在使用的規則是這樣的 RewriteEngine O

    0熱度

    1回答

    我目前有以下領域: mydomain.com.au mydomain.com.sg mydomain.com.hk 我想他們每個人的重定向到非www。所以例如。 www.mydomain.com.au -> mydomain.com.au www.mydomain.com.sg -> mydomain.com.sg 任何想法?我可以在一個正則表達式中做到這一點,我需要多個域擴展嗎?

    -1熱度

    3回答

    我需要從我的codeigniter網址中移除index.php。這是我在.htaccess文件代碼: RewriteEngine On RewriteRule ^index.php/(.*)$ /$1 [R=302,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $

    0熱度

    1回答

    我有一個joomla網站。我不知道如何解決url中重複部分的問題。例如第一個URL http://example.com/category/post 二網址: http://example.com/category/post/category/post 這兩個網址顯示相同的。如何擺脫這一點? htaccess的?或者也許joomla有一個工具? 請幫忙!

    1熱度

    3回答

    目前,我的原則是: <rule name="SecureRedirect" stopProcessing="true"> <match url="^(.*)$" /> <conditions> <add input="{HTTPS}" pattern="off" /> <add input="{HTTP_HOST}" pattern="^(www\.)?(.

    0熱度

    1回答

    有一個小問題,希望得到一些關於如何繼續的建議。 我有一個網站會通過付款表單使用信息併發回一個長的網址,我只想刪除一個查詢。該表單使用隱藏的字段,我不知道爲什麼它發回一個查詢字符串...但試圖與它一起工作。 這是被送回是一個典型的網址: http://www.example.com/testsite/index.php?option=com_virtuemart&Itemid=200&lang=en

    0熱度

    1回答

    所以我加入重寫規則,我們的WordPress的網站,通過使用 $target = 'index.php?' . $this->post_type . '=' . $title; $mapping = $title . '/?$'; add_rewrite_rule ($mapping, $target, 'top'); 這工作正常,我可以看到在WordPress重寫規則的插件。 但是,當我轉到UR

    1熱度

    1回答

    GET重定向我正在做一個POST關閉以http://www.example.com/submit-bug用戶生成的錯誤報告約40 C#桌面應用程序。 不過我最近打開我的網站(其中POST數據處理)到HTTPS所以一切現在通過htaccess的301'ed到HTTPS。 這也意味着,我的POST到http://www.example.com/submit-bug被301'ed到https://www

    0熱度

    1回答

    如何從URL中使用的htaccess example.com/theme/dynamicfolder/ 到 刪除動態&靜態的文件夾名稱example.com/ 主題是靜態目錄& dynamicfolder是從MySQL數據庫 我目前htaccess的腳本 Options -MultiViews RewriteEngine On RewriteBase/ RewriteCond %{HTTP_