Community discussions

MikroTik App
 
michianawireless
just joined
Topic Author
Posts: 8
Joined: Fri Mar 21, 2008 11:08 am

Capturing URL and rewriting it

Wed Apr 18, 2012 9:33 am

Question: How would you capture a base url say www.domain.com and rewrite/redirect it to www.domain.com?ref=2 - BUT if the original URL was www.domain.com/somethingelse.html that we would not rewrite it. Of course the router is a routeros device.
 
taduikis
Member
Member
Posts: 436
Joined: Sat Jul 07, 2007 12:09 pm

Capturing URL and rewriting it

Wed Apr 18, 2012 10:10 am

The domain part might be done with dns spoofing. And the query part, I'm not sure it can be done with RouterOS. You'll have to redirect that spoofed ip addr of domain.com to your external web server and do some magic with mod_rewrite, and/or php. Depends on what exactly you need..

Who is online

Users browsing this forum: moorezilla and 43 guests