Hello guyz, in my website, i have links like:
http://localhost/index.php?Module=Search

i want to hide the php extension and make it something like
http://localhost/ukh/Module/Search

i that pssoble via .htaccess or any server commands
Note: I'm using Apahce server

thanx

In your apache configuration file enable the mod_rewrite module

LoadModule rewrite_module modules/mod_rewrite.so

then restart your apache server and after this create you .htaccess file. :)

This is code for htaccess file,

Options +FollowSymLinks
RewriteEngine on
RewriteRule index/ukh/(.*)/ index.php?Module=$1
RewriteRule index/ukh/(.*) index.php?Module=$1

Save this .htaccess file at root of your website and as per 'Krstevski' change apache setting.

the Mod_rewtite is already
Options +FollowSymLinks
RewriteEngine on
RewriteRule index/ukh/(.*)/ index.php?Module=$1
RewriteRule index/ukh/(.*) index.php?Module=$1
sorry i didn't work either....can somebody help?

the Mod_rewtite is already on
and this code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule index/ukh/(.*)/ index.php?Module=$1
RewriteRule index/ukh/(.*) index.php?Module=$1
sorry i didn't work either....can somebody help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.