Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
.htaccess problems, impossible for me to remove .php

I want your help. I have this url: wwww.myurl.com/?verfy=CDPOR888 OR wwww.myurl.com/index.php?verfy=CDPOR888

I would like to be like this: wwww.myurl.com/CDPOR888

Please help, how can i do it with .htaccess?

I tried this code in .htaccess but not working:

RewriteRule ^([^/]*)\.php$ /?perms_verify=$1 [QSA,L,NC]

but the problem is .php, when i remove it i get an error.

NOTE: .htaccess with case insensitive

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

You may just use this rule:

RewriteEngine On

# request is not for a file
RewriteCond %{REQUEST_FILENAME} !-f
# request is not for a directory
RewriteCond %{REQUEST_FILENAME} !-d
# rewrite to destination path
RewriteRule ^([\w-]+)/?$ ?verfy=$1 [QSA,L]
over 4 years ago · Santiago Trujillo Report

0

Please replace this rule!

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
# Use this rule
RewriteRule ^([^\.]+)$ $1.php [NC,L]
over 4 years ago · Santiago Trujillo Report

0

Update your .htaccess file as

DirectoryIndex index.php

# remove the next 3 lines if you see a 500 server error


FileETag none
ServerSignature Off

Options All -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([0-9a-zA-Z_-]{1,16})$ index.php?verify=$1 [L]
</IfModule>

On wwww.myurl.com/index.php page , write the logic to catch verify value using GET method and do your further operations

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!