Solved

How to change the url from saying php to not saying php?

Posted on 2011-03-09
2
278 Views
Last Modified: 2012-06-21
I have a website that uses php. Right now, if somebody goes to one of the pages it shows something like this "test.com/example.php?id=23543" I need to change it so it says something like "test.com/example-23543" with no php or ? showing. How would I do that? I'd like to do it in the htaccess if possible.
0
Comment
Question by:anotherdotcommer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
WhiteSeed earned 250 total points
ID: 35083437
You'll want to use mod_rewrite, a module available in apache. This will be managed by an .htaccess file within your web directory. AddedBytes has a nice tutorial for beginners on url-rewriting.
http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/
0
 
LVL 30

Assisted Solution

by:Randy Downs
Randy Downs earned 250 total points
ID: 35083440
if you just have a few of these you could do it manually like this - http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question