mod rewrites and $_GET[] strings [SOLVED]
Posted: Tue Feb 27, 2007 6:43 am
I have a simple mod rewrite that rewrites domain.com/username to domain.com/user-view.php?user=username.
The problem comes when I want to append information to that url.. ie
domain.com/username?success=1&album_created=12345
Say I wanted to get the value of $_GET['success'] or $_GET['album_created'] ..
They don't appear in the $_GET array.
Do I have to make a rewrite rule like this?
Then use php to break apart the $_GET['query_string']?
Is there any easier way?
[edit] I don't want to use user-view.php?user=username&success=1&album_created=12345. I want it in the form of domain.com/username?query=string
The problem comes when I want to append information to that url.. ie
domain.com/username?success=1&album_created=12345
Say I wanted to get the value of $_GET['success'] or $_GET['album_created'] ..
They don't appear in the $_GET array.
Do I have to make a rewrite rule like this?
Code: Select all
RewriteRule ^([\w]{3,25})(.+)$ /user-view.php?user=$1&query_string=$2Is there any easier way?
[edit] I don't want to use user-view.php?user=username&success=1&album_created=12345. I want it in the form of domain.com/username?query=string