Mod_rewrite prefix problem?

Try this instead: htaccess RewriteEngine on RewriteRule ^$ app/public/ L RewriteRule (.*) app/public/$1 L app/. Htaccess RewriteEngine on RewriteRule ^$ public/ L RewriteRule (.*) public/$1 L app/public/. Htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME}!

-d RewriteCond %{REQUEST_FILENAME}! -f RewriteRule ^(.*)$ index. Php?

Url=$1 QSA,L Finally, create an index. Php in your app/public and put a dispatcher here: pre.

Try this instead: /. Htaccess RewriteEngine on RewriteRule ^$ app/public/ L RewriteRule (.*) app/public/$1 L /app/. Htaccess RewriteEngine on RewriteRule ^$ public/ L RewriteRule (.*) public/$1 L /app/public/.

Htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME}! -d RewriteCond %{REQUEST_FILENAME}! -f RewriteRule ^(.*)$ index.

Php? Url=$1 QSA,L Finally, create an index. Php in your /app/public/ and put a dispatcher here: Now say try accessing: # these will go through php /controller/action /post/create /post/delete/1 # these are static files /stylesheets/ /foo/bar/myfile.txt.

I get 500, and in rewrite log, it looks like he got in infinitive loop . But I don't see why, L should mean it's last, right? Also, if I understood well, you are redirecting everything to app/public, right?

What about index. Php part? Sorry if I understood wrong!

– mfolnovich Aug 8 '10 at 18:35 @mfolnovich Sorry, I didn't paste the rest of the files – Aillyn Aug 8 '10 at 18:39 hey, tnx for your answer. Now, it seems to work for static files, but: 1. For empty path, it displays app/public 2.

For real requests, it crashes and in log, it says: script '/var/www/projects/petasite/app/public/index. Php' not found or unable to stat, I tried putting ../../index. Php?

Url=$1, but it caused 500. EDIT: can't figure out how to put newlines in comments :S – mfolnovich Aug 8 '10 at 18:45 @mfolnovich You need create an index. Php in /app/public which acts as a dispatcher.

– Aillyn Aug 8 '10 at 18:46 Hmm, any way to avoid other index. Php? If not, I guess there isn't any other solution, so tnx a lot!

:) – mfolnovich Aug 8 '10 at 18:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions