| | #1 |
| Blain Jones Join Date: 2009 Location: Valparaiso, IN
Posts: 163
Thanks: 4
Thanked 12 Times in 12 Posts
|
I am having trouble with an htaccess rewrite, what I need to happen is when a user goes here: Code: website.com/username?p=1 Code: website.com/index.php?user=username&p=1 Code: RewriteRule ^(.*)$ http://website.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*/([a-zA-Z0-9_-]+)|([a-zA-Z0-9_-]+))$ ./index.php?user=$1 [L] Thank you in advance |
| | |
| |
| | #2 |
| Warrior Member Join Date: 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
You need to add a new rule for the "p" variable.
|
| |
|
| Bookmarks |
| Tags |
| htaccess, rewrite, rule |
| |