By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,115 Members | 843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,115 IT Pros & Developers. It's quick & easy.

Make long url search engine friendly by using fake folder in address bar

P: 24
Hi,
I have searched on the internet but can't find a way to disguise a long ugly php url such as www.domain.com/companies.php?id=543 into this:
www.domain.com/companyname
the folder "companyname" shouldnt really exist. There should be some instructions in .htaccess or something like that (not sure) to show www.domain.com/companies.php?id=543 instead but still keep www.domain.com/companyname in the address bar. I dont want to actually create a folder. The purpose of this is to make it search engine friendly. Is this possible?
All help will be greatly appreciated,
Miraan Tabrez
Oct 4 '08 #1
Share this Question
Share on Google+
1 Reply

pbmods
Expert 5K+
P: 5,821
Heya, Miraan.

You're looking for mod_rewrite, an Apache plugin.
Oct 4 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.