Hello,

I want to do something with my link.
And by this I mean. I want to do this: www.example.com/mypage.php?id=10000

But is there a way to do that samething but display it like www.example.com/10000 or www.example.com/mypage.php/10000 ??

Would this have to be done through a .htaccess file?

Recommended Answers

All 2 Replies

You are correct, this would need to be done with an .htaccess file.
Essentially taking www.example.com/#### and mapping it to example.com/page.php?id=####

There are lots of examples and this has been covered quite a bit on these forums.

Thanks very much :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.