friendly url with dynamic variables

1

My .htaccess contains the following

ErrorDocument 404 /errores/404.html
ErrorDocument 500 /errores/500.html

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php 

With this I get that to send me to the next address

miweb.com/directorio/facturas.php

just write the following in the address bar

miweb.com/directorio/facturas

But to go for example to:

miweb.com/directorio/nuevaorden.php?servicio=449

I have to go to:

miweb.com/directorio/nuevaorden?servicio=449

What I'm looking for is to show something like:

miweb.com/directorio/nuevaorden/449

But I do not know how to do it, any ideas?

    
asked by Pablo 25.09.2017 в 18:48
source

0 answers