Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-21-2012, 09:36 AM   PM User | #1
Nikey646
New Coder

 
Join Date: May 2012
Posts: 31
Thanks: 0
Thanked 7 Times in 7 Posts
Nikey646 is an unknown quantity at this point
.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.

my code:
Code:
RewriteEngine on
RewriteRule ^([a-zA-Z]+)$ index.php?action=$1
RewriteRule ^([a-zA-Z]+)/([a-zA-Z0-9]+)$ index.php?action=$1&md5=$2
As you can see i'm using an Action based paging system, but at one point i'm getting a md5 as well, their is essentially 2 pages for this.

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?
Nikey646 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:08 AM.


Advertisement
Log in to turn off these ads.