Solved

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

Posted on 2011-03-09
2
237 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
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 29

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now