Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

151
Visualizações
Remove GET parameters from the URL that are first encoded using base64 and then urlencoded in .htaccess file

I am completely new to .htaccess and tried to implement some examples from youtube and google but nothing really worked. I have a URL like

https://anything.org/XYZ/dashboard?personid=MjAwNDAwMjU0&role=Mw%3D%3D**

and I want something like

https://anything.org/XYZ/dashboard/personid/MjAwNDAwMjU0/role/Mw%3D%3D**

I tried a couple of solutions but did not work. Currently I am using this code to remove extension of the file

       <IfModule mod_rewrite.c>
         RewriteEngine On
        
    #this will skip rewrite rules for POST requests
        RewriteCond %{REQUEST_METHOD} POST
        RewriteRule ^ - [L]
        
        
        #used to remove .html extension from the file
        RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
        RewriteRule ^ /%1 [NC,L,R]
        
        
    RewriteCond %{REQUEST_FILENAME}.html -f
    RewriteRule ^ %{REQUEST_URI}.html [NC,L]
    
    
    
    #used to remove .php extension from the file
    RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
    RewriteRule ^ /%1 [NC,L,R]
  RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]


</IfModule>
    
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda