I need some help. This is the original link
http://tester.local/adm/index_pub.php?ch=feondi-event
I want it to be access like this
http://tester.local/feondi_event
I need some help. This is the original link
http://tester.local/adm/index_pub.php?ch=feondi-event
I want it to be access like this
http://tester.local/feondi_event
This does not use .htaccess
, but works as well:
<?php
if($_GET['ch'] == 'feondi-event') {
header("Location: http://tester.local/feondi_event");
}
?>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /adm/index_pub.php?ch=$1 [L]
</IfModule>