我使用下面的規則產生短網址, RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com$ [NC]
RewriteRule^http://maindomain.com/shortener%{REQUEST_URI} [L,NE]
example of the short url domain2.com/j3
將被重定向到 http://maindoma
我構建了一個縮短長鏈接的腳本。一切正常,只是當我訪問縮短的鏈接,我得到 錯誤"Not Found The requested URL /ESrdhPNLMV was not found on this server." 縮短網址有http://example.com/ESrdhPNLMV格式。 「ESrdhPNLMV」部分作爲標題存儲在數據庫中,作爲長url的標題。 當前的.htaccess規則