0

I have the following URL:https://www.bidhaa.net/scripts/details I managed to remove .php extension using .htaccess Now, I need to remove scripts folder in URL and get redirected to the intended files in scripts folder so that URL become https://www.bidhaa.net/details

1 Answers1

0

Try To add this code on your .htaccess file

RewriteEngine On 
RewriteRule ^scripts/(.*)$ /$1 [L]

i found the answer from this link, maybe this will help Remove directory from URL with

Dharman
  • 30,962
  • 25
  • 85
  • 135
Helmi
  • 41
  • 1
  • I managed to remove scripts folder on URL with this answer, but now i get "page not found error" when i try to navigate to the files found in scripts folder. – codebreaker Apr 02 '21 at 15:44