Hi:

this solution, work for me:

file: routes.py

add:

routes_in = (
('./', '303->http://www.domain.org/folder'),
('.', '303->http://www.domain.org/folder'),
)



En 04/09/2013 12:46, [email protected] escribiu:

SO debian, apache2 with wsgy and mod_rewrite load

Is posible redirect to subfolder when app is not specified on url?

example:

http://www.mysite.com/ -> http://www.mysite.com/wordpress/index.php

in case
http://www.mysite.com/welcome/ (normal work, no redirect anything)

I test on /etc/apache2/sites-available/default:

WSGIDaemonProcess web2py user=www-data group=www-data

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite\.com$
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
RewriteRule ^$ wordpress[L]

<VirtualHost *:80>
  WSGIProcessGroup web2py
  WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
...
also I test

|RewriteEngine On
RewriteRule ^$ /worpress[L]


|
Very thanks!

--
Dani



--

---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/dtppgONOxik/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--

--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to