Forum Moderators: phranque
I'm trying to put everything that comes after my domain into a variable.
So I would like to work as the following:
[mydomain.com...]
rewrtie into ->
[mydomain.com...]
But my following syntax throws me Internal Server Error 500. It would be appreciated if anyone could help.
Thank you in advance.
.htaccess file content
RewrtieEngine On
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule ^(.*) ./index.php?url=$1 [QSA,L]
Also, inside your PHP used to process the form, just dump the entire "GET" array to the screen, and see if you see anything strange in there.
If none of that works, change your rule to an external redirect as a temporary test, so that you can see the rewritten path as a URL, and make sure it is right.
Basically, your code is fine. It's trivially simple, and so it's easy to see that as long as the paths are correct, it should work just fine.
Jim