URL prettification with arbitrary number of “subdirectories”?

It's far easier to forward all URLs to your controller script, and do your routing in PHP: RewriteCond %{REQUEST_FILENAME}! -f RewriteRule . * my_script.

Php L The directs all requests for files which do not exist through my_script. Php From there, you can examine the request URI, explode it into segments delimited by forward slashes, and route to the correct file.

It's far easier to forward all URLs to your controller script, and do your routing in PHP: RewriteCond %{REQUEST_FILENAME}! -f RewriteRule . * my_script.

Php L The directs all requests for files which do not exist through my_script.php. From there, you can examine the request URI, explode it into segments delimited by forward slashes, and route to the correct file.

That's the only solution I came to myself after thinking about it for a bit. I'll wait a bit for more responses, though before marking this as answered. Thanks!

– ypeels72 Jan 4 at 23:29 +1. Is there a reason why there's no additional RewriteCond for -d and -l? – Linus Kleen Jan 4 at 23:30 @gore -l is redundant (-f covers symlinks) and I never want to serve directory contents so no -d.

– meagar Jan 4 at 23:35.

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