Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: .htaccess Multiple Query Rewrite
07-21-2012, 10:36 AM #1
- Join Date
- May 2012
- Thanked 7 Times in 7 Posts
.htaccess Multiple Query Rewrite
First off, sorry for the noobiness of this, i've not really looked into .htaccess coding, but just know the basic re-writing.
RewriteEngine on RewriteRule ^([a-zA-Z]+)$ index.php?action=$1 RewriteRule ^([a-zA-Z]+)/([a-zA-Z0-9]+)$ index.php?action=$1&md5=$2
1: Upload (Default)
2: View (One that requires the MD5)
If i remove the first line, the first (Default) page doesn't want to work, but i the md5 is "example5" and i manually insert "upload" over "View" in the action rewrite, then it doesn't display the entire page oddly.
eg url for above:
"view/example5" = proper url
"upload/example5" = broken url
How would i prefer the md5 query from continuing and destroying the page?