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 02-26-2013, 11:08 AM   PM User | #1
HDRebel88
Regular Coder

 
Join Date: May 2011
Posts: 112
Thanks: 11
Thanked 5 Times in 5 Posts
HDRebel88 is an unknown quantity at this point
Mod_Rewrite for variable amount of Variables

I need some help generating a mod_rewrite regex pattern for a url that will have an unknown number of variables.


Here's an example:

http://www.darkentity-static.info/?R...c=css&f0=style
would need to become:
http://www.darkentity-static.info/DA...i/14/css/style

I'd also have:

http://www.darkentity-static.info/?R...ile&f2=contact
which would need to become:
http://www.darkentity-static.info/DA...mobile/contact

Any ideas on how to do this?

The constant variables will be RF, loc, jc, c, and ex.
The variables that will have an unknown amount are the f(n) variables. Could be 1, or could 15.
HDRebel88 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 10:58 AM.


Advertisement
Log in to turn off these ads.