Hey,
I need some help with mod_rewrite.
What I'm trying to do, is:
a user can type in:
mydomain.net/domain.com
it then brings up the page:
mydomain.net/index.php?domain=domain.com
But I can't seem to do it without it messing up with index.php (thinks its a domain.com)
Can anybody help?
Here's the code i have atm:
No idea whether it's right or wrong.
Thanks,
tm
I need some help with mod_rewrite.
What I'm trying to do, is:
a user can type in:
mydomain.net/domain.com
it then brings up the page:
mydomain.net/index.php?domain=domain.com
But I can't seem to do it without it messing up with index.php (thinks its a domain.com)
Can anybody help?
Here's the code i have atm:
Code:
RewriteEngine on
RewriteRule ^([^/]+)/$ index.php?domain=$1 [L]
No idea whether it's right or wrong.
Thanks,
tm





