php - htaccess issue - not rewriting url -


i know question has been asked lot of times before need help. have spent hours on , cant figure out heck wrong in following htaccess code.

options +followsymlinks  rewriteengine on  rewriterule services/z/(.*)/ services.php?z=$1  rewritecond %{server_port} 80  rewriterule ^(.*)$ https://rcunlocks.com/$1 [r,l] 

i trying re-write url

https://rcunlocks.com/services.php?z=spus3

to

https://rcunlocks.com/services/spus3

if wrong htaccess file please tell me.

your appreciated. thank you.

try one

options +followsymlinks rewriteengine on # check request url neither file nor directory rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d  rewriterule ^services/(.*) services.php?z=$1 [nc] 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -