Replace all the links except local - For redirecting


/ Published in: PHP
Save to your folder(s)

You can get hostname from script environment - getenv("HTTP_HOST")
(?!'.$host.') matches URLs always except local links

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.