Remove In Url In Php

[Solved] Remove In Url In Php | Php - Code Explorer | yomemimo.com
Question : remove .php from url

Answered by : obedient-otter-gghhjw1exycp

# Apache Rewrite Rules <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase /
# Add trailing slash to url RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$ RewriteRule ^(.*)$ $1/ [R=301,L]
# Remove .php-extension from url RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([^\.]+)/$ $1.php
# End of Apache Rewrite Rules </IfModule>

Source : https://stackoverflow.com/questions/21617506/remove-html-and-php-extensions-with-htaccess | Last Update : Fri, 06 Nov 20

Question : remove % in url in php

Answered by : amit-rajput

<?php // Decode the Encoded URL $input = "http%3A%2F%2Fway2tutorial.com%2F"; $input = urldecode($input); // Output http://way2tutorial.com/ echo $input;
?>

Source : | Last Update : Wed, 28 Sep 22

Answers related to remove in url in php

Code Explorer Popular Question For Php