I have a vhost that needs to redirect
/app and I use following to accomplish that in vhost.conf:
RewriteEngine On RewriteRule ^/$ /app [R]
but it's giving me hard time since users get http://server.com//app address.
How to fix that?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
suku@ubuntu-vm:/var/www/local$ grep Redirect /etc/apache2/sites-available/default RedirectMatch ^/$ /app suku@ubuntu-vm:/var/www/local$ curl http://127.0.0.1/ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://127.0.0.1/app">here</a>.</p> <hr> <address>Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 80</address> </body></html>