| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #6 (permalink) |
| NamePros Regular | Hitch, nice tool but I don't know exactly how to work with it! vinodkv, that code you wrote will rewrite to NAME.html instead of directory, what I specifically want is to URL: www.website.com/index.php?author=MyName To be rewrite as: www.website.com/MyName How to do it ? Thank you
__________________ :notme: |
| |
| | #7 (permalink) | |
| Stud Sausage | Quote:
Code: RewriteEngine on RewriteRule ^([^/.]+)/?$ index.php?author=$1 [L] /? is used to let users add a forward slash at the end of the url, with or without it will work The [L] flag means if the rule is successful then do not check any more (optional) Matt | |
| |
| | #9 (permalink) | |
| Stud Sausage | Quote:
Code: RewriteRule ^site/([^/.]+)/?$ index.php?author=$1 [L] Last edited by Matthew.; 02-24-2007 at 11:47 AM. | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |