1.11M Members

url rewriting

 
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

 
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
 

Here is a website that tells you alot of useful things Click Here. But when in doubt, go to the apache website
Click Here.

 
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

 
0
 

Sorry I don't understand. With what exactly do you need help?

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article