Apache URL redirect? - Raspberry Pi Forums


hi guys.

i'm trying reflect custom url on clients browser no matter url type on browser. have http requests coming pi going directly apache server ip 192.168.1.88 using dnsmasq.

think might have found way canonical hostnames explained here http://httpd.apache.org/docs/2.4/rewrite/remapping.html

code: select all

<virtualhost *:80>   servername undesired.example.com   serveralias example.com notthis.example.com    redirect "/" "http://www.example.com/" </virtualhost>  <virtualhost *:80>   servername www.example.com </virtualhost>
how redirect wildcard url display http://www.mycustomurl.com/ on client browser?

raspberry pi 2 model b
apache 2.2
dnsmasq
date raspbian

thanks!



raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support