Jon W
12-02-2009, 08:41 AM
Hello, I was wondering if I could get help making a Regular Expression for my server rewrite.
I currently got a rewrite for one for one of my pages and I was just finishing up on my user account home page and I am ready for the other user pages but how the rewrite works is its:
http://example.com/user/username
Now I was playing around with some idea and I was thinking about making the URL something like this:
http://example.com/user/username.messages
OR
http://example.com/user/username/messages
Can someone help me with both of those rewrites?
The dynamic URL would be:
http://example.com/index.php?user=someusername&view=some_category
My current rewrite is like this
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?user=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?user=$1
Any help on this that would be wonderful.
Thanks,
Jon W
I currently got a rewrite for one for one of my pages and I was just finishing up on my user account home page and I am ready for the other user pages but how the rewrite works is its:
http://example.com/user/username
Now I was playing around with some idea and I was thinking about making the URL something like this:
http://example.com/user/username.messages
OR
http://example.com/user/username/messages
Can someone help me with both of those rewrites?
The dynamic URL would be:
http://example.com/index.php?user=someusername&view=some_category
My current rewrite is like this
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?user=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?user=$1
Any help on this that would be wonderful.
Thanks,
Jon W