.htaccess - Creating a redirect from viewinvoice.php/?id=xx to viewinvoice./?=xx? -
Hello I am updating an invoice system and using any of the http requests using /client-area/viewinvoice.php Will not redirect /? Id = xx to / client-area / viewinvoice /? Id = xx is basically removing the php extension, we can not delete them completely because some pages still use them.
How do you do it through HTACs? DOCUMENT_ROOT /
.php
.
to rewrite the rewrite / # externally Re-insert /dir/file.php to rewrite / dir / file% {THE_REQUEST} \ s / + (?:?) \. Php [\ s?] [NC] rewriting rule /% 1 [R = 301, L, Northeast] # Internally forward / dir / file /dir/file.php rewrite% {REQUEST_FILENAME}! -d Recovery code% {DOCUMENT_ROOT} / $ 1 .php -f [NC] Rewritable ^ (. +?) /? $ / $ 1.php [L]
Comments
Post a Comment