Need help with an .htaccess URL rewriter
Posted
by
AlexV
on Server Fault
See other posts from Server Fault
or by AlexV
Published on 2010-12-21T19:14:04Z
Indexed on
2010/12/21
20:56 UTC
Read the original article
Hit count: 275
I'm trying to do another SEO system with PHP/.htaccess...
I need the following rules to apply:
- Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
- Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
- All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
- The htaccess must send the typed URL in a GET value so I can work with it in PHP.
Any mod-rewrite wizard can help me?
© Server Fault or respective owner