Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([^/]+)/$ /profile.php?name=$1 [L]
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([^/]+)/?$ /profile.php?name=$1 [L]
Thank You Very Much!
I'll hazard a guess tht by using a non-specific pattern which matches the substitution URL, you have created an 'infinite' rewrite loop. This can be prevented with a simple exclusion that prevents profile.php itself from being rewritten to profile.php:
Options +FollowSymLinks
RewriteEngine on
RewriteCond $1 !^profile\.php$
RewriteRule ^([^/]+)/?$ /profile.php?name=$1 [L]