0

Hello i want to use url rewriting in my core php web page site.. can some me help me ??

For Example :-
My web page url link is
www.demo.com/abc.php
i wana to show that page in url like
www.demo.com/abc

can some one tell me how can me solve that probleum ..?

Thanx

4
Contributors
6
Replies
8
Views
4 Years
Discussion Span
Last Post by diafol
0

Not in PHP but in your .htaccess file you can put this:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

That will remove the .php from the end of the URL

0

Dear GliderPilot,
As per u said to me.i am creat new file with .htaccess (EXE)
and insert your code in that file ..
but its continue is showing the .php (EXE) with my page ..
can u tell me what to do ..? how can me solve that probleum ..?

thanx

0

WHat does (EXE) signify?
The .htaccess should be in the directory of the page that you are viewing, if that makes sense.

0

Dear diafol,

I mean to say me save that file me with .htaccess...
So can u help me in this probleum ?

Thanx

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.