Completed

Rewrite rule with mod_rewrite in a .htaccess file

This project was successfully completed by kirilpanchev for $30 USD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$30 - $250 USD
Completed In
1 day
Total Bids
3
Project Description

First an explanation: {curlyBrackets} mean a variable.

Somewhere on the internet there is a folder:

/FOLDER

It contains different types of files named as follows:
{name}.{ext}.php

For instance:
[url removed, login to view]
[url removed, login to view]
[url removed, login to view]

The folder also contains a .htaccess file:

.htaccess

Besides the {name} and {ext}, 17 other variables are passed to the files via the url, and retreived via PHP $_GET[]


What I need done: A rewrite rule that will be placed in the .htaccess file inside the /FOLDER that rewrites:

{name}/{a}-{b}-{c}-{d}-{e}-{f}-{g}-{h}-{i}-{j}-{k}-{l}-{m}-{n}-{o}-{p}-{q}.{ext}

To:

{name}.{ext}.php?pT1={a}&bT1={b}&gT1={c}&hT1={d}&pT3={e}&bT3={f}&gT3={g}&hT3={h}&qT1={i}&qT2={j}&qT3={k}&qT4={l}&T1={m}&T2={n}&T3={o}&T4={p}&i={q}

For example:

[url removed, login to view]

Should become:

[url removed, login to view]

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online