Apache Rewrite Help
I want to take a URL like
example.com/lib/quiz/?quizID=9
and make it
example.com/lib/quiz/9
I've tried a dozen different things, and I keep getting stuck in a loop.
Any ideas?
I want to take a URL like
example.com/lib/quiz/?quizID=9
and make it
example.com/lib/quiz/9
I've tried a dozen different things, and I keep getting stuck in a loop.
Any ideas?
teammatt3 posted this at 21:13 — 19th December 2008.
He has: 2,102 posts
Joined: Sep 2003
Nevermind
RewriteRule ^quiz/([0-9]+)$ /lib/quiz/?quizID=$1 [L]
Because the htaccess file was in sub directory (lib), it was incorrectly referencing the files.
pr0gr4mm3r posted this at 22:59 — 19th December 2008.
He has: 1,502 posts
Joined: Sep 2006
I always have just one htaccess file for rewriting in the root directory for that reason.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.