www.sitename.com/index.php?name=[B]JOHN.SMITH[/B]&document['details'].submit() Code (markup): this typed into my address bar works by filling out the field name and submiting the form also. i want someone to be able to type this instead: www.sitename.com/[B]JOHN.SMITH[/B] Code (markup): i have the following at the moment any ideas as just comes up with a server error: RewriteRule ^/?([a-z0-9]*)\.([a-z]*)$ /index.php?name=$1.$2&document['details'].submit() [L] Code (markup):
ANYONE? www.sitename.com/index.php?name=JOHN.SMITH&document.details.submit() Code (markup): to www.sitename.com/JOHN.SMITH Code (markup):
RewriteRule ^([^/\.]+)\.([^/\.]+)$ /index.php?name=$1.$2&document.details.submit() [R=301,L] Code (markup): Untested, but it should work.
This should work : RewriteCond %{QUERY_STRING} ^name=([^&]+)&document\.details\.submit\(\)$ RewriteRule ^index\.php %1 [R=301,L] Code (markup):
The only trouble I could see with your original RewriteRule was that it didn't accept capital letters and the name you were using was entirely in capital letters. You could either do this: RewriteRule ^/?([a-z0-9]*)\.([a-z]*)$ /index.php?name=$1.$2&document['details'].submit() [NC,L] Code (markup): or this: RewriteRule ^/?([a-zA-Z0-9]*)\.([a-zA-Z]*)$ /index.php?name=$1.$2&document['details'].submit() [L] Code (markup):