This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Shared-host install et htaccess pb
Shared-host install et htaccess pb [message #102034] Tue, 06 July 2010 00:51
thibmonier  is currently offline thibmonier
Messages: 13
Registered: October 2007
Location: Nantes, France
Junior Member

Hi everybody,

I'm trying to configure sf on a shared hosting without a public folder.

I put a htaccess with some RewriteRules to redirect everything to web folder but without success (it works for front, but backend routing doesn't seem to work)

Does anybody successed with it ?

here is my htaccess

RewriteEngine On
RewriteBase /web

	  # we skip all files in /web
	  RewriteCond %{REQUEST_URI} ^/web/
	  RewriteRule .* - [L]

	  # we rewrite all other files with .something to /web
	  RewriteCond %{REQUEST_URI} \..+$
	  RewriteCond %{REQUEST_URI} !\.html$
	  RewriteCond %{REQUEST_URI} !\.php$
	  RewriteRule ^(.*)$ /web/$1 [L]
		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteRule ^backend\.php$ /web/backend.php [QSA,L]
		RewriteCond %{REQUEST_FILENAME} !-f
	  # no, so we redirect to our front web controller
	  RewriteRule ^(.*)$ /web/index.php [QSA,L]

Thibaut MONIER
Previous Topic:Netbeans with MAMP on Mac
Next Topic:symfony without pretty urls
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software