Hi,
Actually I want to run ~name/how
instead of ~name/how.php
.
I have made following changes in .htaccess:
# If the requested URI does not contain a period in the final path-part
RewriteCond %{REQUEST_URI} !(.[^./]+)$
# and if it does not exist as a directory
RewriteCond %{REQUEST_fileNAME} !-d
# and if it does not exist as a file
RewriteCond %{REQUEST_fileNAME} !-f
# then add .html to get the actual filename
RewriteRule (.*) $1.php [L]
But it will run as:
~name/~name/how
And at every link click it will be added ~name
in the URL ex. http://ip/~name/~name/~name/serach
.
Can you tell me what is wrong in .htaccess?