careymarkoe
10-30-2008, 11:01 PM
Hey all.
When I try using mod_rewrite to redirect the user from test/test.phtml?id=IDINMYSQLDATABASE to test/IDINMYSQLDATABASE using mod_rewrite, I get this error:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
Here's my code:
for the .htaccess in the root of public_html, I have:
[[ extension handlers ]]
RewriteEngine on
and for the .htaccess in the directory of test.phtml (public_htmlroot/test/test.phtml), I have:
RewriteRule ^/?([a-zA-Z_]+)$ test.phtml?id=$1 [L]
Help would be APPRECIATED. I can't figure this out! I'm pretty good at PHP but Apache is killing me!
Thanks,
Carey
EDIT: I am trying to recall the information in test.phtml to the id as a subdirectory. Not the reverse. I am not trying to request the ID from the subdirectory and put it in the test.phtml page.
When I try using mod_rewrite to redirect the user from test/test.phtml?id=IDINMYSQLDATABASE to test/IDINMYSQLDATABASE using mod_rewrite, I get this error:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
Here's my code:
for the .htaccess in the root of public_html, I have:
[[ extension handlers ]]
RewriteEngine on
and for the .htaccess in the directory of test.phtml (public_htmlroot/test/test.phtml), I have:
RewriteRule ^/?([a-zA-Z_]+)$ test.phtml?id=$1 [L]
Help would be APPRECIATED. I can't figure this out! I'm pretty good at PHP but Apache is killing me!
Thanks,
Carey
EDIT: I am trying to recall the information in test.phtml to the id as a subdirectory. Not the reverse. I am not trying to request the ID from the subdirectory and put it in the test.phtml page.