0
我使用下面的規則產生短網址,短URL和預覽數據
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://maindomain.com/shortener/j3
那麼它將擊中實際的URL
http://maindomain.com/web/article/section/192392
現在的問題是,當我在Twitter上分享的短網址它不會給你私法EW圖像或數據,
任何建議這裏來調整重寫規則或者其本身需要的邏輯進行調整
@Jecki您可能還需要到'DPI'標誌添加到規則。 – Walf