Find Jobs
Hire Freelancers

Edit rewrite rule with mod_rewrite in a .htaccess

$10-30 USD

Concluído
Publicado há mais de 8 anos

$10-30 USD

Pago na entrega
For this project the job has been done before but with a few less parameters. I am providing an existing working .htaccess file which should make your job a lot easier! Assume a website ([login to view URL]) with the following folder structure: .htaccess [login to view URL] /framework .htaccess [login to view URL] [login to view URL] [login to view URL] [login to view URL] /folder /subfolder .htaccess [login to view URL] [login to view URL] [login to view URL] /otherfolder /etc Take a look at the "framework" and "subFolder" folders. All the files in those folder are named according to a specific pattern: $randomName.$[login to view URL] [login to view URL] [login to view URL] etc. 19 different variables ($v1 - $v19) are past to those files through the URL and retrieved through PHP $_GET . For example: [login to view URL] [login to view URL] The names of the variables are always the same and always in the same order. Only the values change. And this is where you come into the picture: What I need is a .htaccess file with rewrite rules. This identical .htaccess file has to be able to be placed in any folder and still function. The .htaccess file will of course only affect the files in that same folder. So let's assume all files and .htaccess are moved from /folder/subfolder to /otherfolder: the .htaccess file and the re-writing has to still function. Here is the URL that will be requested in lets say the browser (1): [login to view URL]$randomName.$v1_$v2_$v3_$v4_$v5_$v6_$v7_$v8_$v9_$v10_$v11_$v12_$v13_$v14_$v15_$v16_$v17_$v18_$v19.$fileType In this is the URL that it has to be rewritten to (2): [login to view URL]$randomName.$[login to view URL]$v1&pT1=$v2&bT1=$v3&gT1=$v4&hT1=$v5&pT3=$v6&bT3=$v7&gT3=$v8&hT3=$v9&qT1=$v10&qT2=$v11&qT3=$v12&qT4=$v13&qT5=$v14&T1=$v15&T2=$v16&T3=$v17&T4=$v18&T5=$v19 Compared to the existing .htaccess file provided, the only difference is the addition of 3 variables: i=$v1 qT5=$v14 T5=$v19 Please notice: This is not a forwarding. URL (1) will be shown in the address bar, but URL (2) will be "what's actually happening".
ID do Projeto: 9057146

Sobre o projeto

4 propostas
Projeto remoto
Ativo há 8 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Dear sir, I will complete your project asap, LIFETIME error free guarantee and provide ONE YEAR support... I have right Skills required Apache to execute your esteemed project.
$35 USD em 1 dia
5,0 (3 avaliações)
2,3
2,3
4 freelancers estão ofertando em média $28 USD for esse trabalho
Avatar do Usuário
Hi, I am 5 years experienced web developer. I understand your point. I can complete this project within two hours . Please check my profile for my work quality . Thanks, Bhaskar Mandal
$25 USD em 0 dia
5,0 (1 avaliação)
1,6
1,6
Avatar do Usuário
Now, it's somewhat better you deleted the other project, because you didn't attach that 'alegedly helpful' htaccess file. There's two discrepancies between what you writhe here and what that htaccess is doing, here they are: 1) The passes variable values in the URI are separated by a single dash character, not with an underscore as you write here, so clarify which one of the two is the correct one. 2) The rewrite condition and rule in that htaccess does not mandate there's ALWAYS 16 variables being passed, it can be only 8, in which case the condition would still match and the rule be applied with the sequence (of 8) starting with 'qT1' in the query string having exactly the same values as the sequence (of 8) 'pT1'. Bottom line is the way you are attacking the sequence problem is not teh best one, also it does not support an 'open end' (rewrite as many variables as there are found in the incoming URI, rather than always expect them to be of a fixed length) rewriting, which I think is a better way of handling the whole lot. Regards, Dobri
$20 USD em 0 dia
5,0 (1 avaliação)
1,4
1,4
Avatar do Usuário
Hi I have 7+ year of experience in website development. I have good knowledge in htaccess.
$30 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) DENMARK
Valby, Denmark
5,0
6
Membro desde dez. 19, 2012

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.