[英]Apache Rewrite - Redirect Wildcard Subdomain and Handling Internal URL shortener
[英]rewrite/redirect url from subdomain to domain with wildcard?
我只是將網站從子文件夾移至html根,我需要某種htaccess規則來重寫所有網址,因此指向該網站的舊鏈接仍然有效
舊路徑為www.domain.com/stage/*,現在應指向www.domain.com/*
我該如何實現?
不確定您使用的是哪種類型的Web服務器,應該看起來像
rewrite ^(.+)/stage/(.*)$ $1/$2;
讓我知道您是否需要任何改進或是否需要特定的Web服務器
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.