Forum Moderators: phranque
==================================================================
CODE:
RewriteRule ^([^/]+)\.([^/]+)$ ./name_checker.php?f=$1&l=$2 [L]
==================================================================
So if I type 'http://localhost/firstname.lastname' in the address bar,
the variables should be
$f = firstname
$l = lastname
I must use 'dot' between them.
Anyone fixes it will be highly appreciated. I've been dying in 3 days with this.
Please.
Thank you in advance
If that is the case, then the rule will rewrite name-checker.php to itself recursively. In other words, you've got an infinite loop. You can confirm this by looking at your server error log file.
The fix is simple: Explicitly prevent requests for name-checker.php from being rewritten:
RewriteCond %{REQUEST_URI} !^/name_checker\.php$
RewriteRule ^([^/]+)\.([^/]+)$ name_checker.php?f=$1&l=$2 [L]