3

I have a mod-wsgi script running which is aliased to /test.

I would like to alias the URL /prod to /test. So essentially, /test loads, but the URL says /prod. It is a single-page application.

Is there a way I can do this?

Uwe Keim
  • 2,420
  • 5
  • 30
  • 47
jaynp
  • 235
  • 3
  • 9

1 Answers1

3

read http://httpd.apache.org/docs/2.0/misc/rewriteguide.html, then in your VirtualHost settings or in your .htaccess put something like:

RewriteEngine On
RewriteRule ^/prod(/?.*)$ /test/$1 [R,L]
caesarsol
  • 186
  • 8