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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miraan
    New Member
    • Apr 2008
    • 24

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

    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?i d=543 into this:
    www.domain.com/companyname
    the folder "companynam e" shouldnt really exist. There should be some instructions in .htaccess or something like that (not sure) to show www.domain.com/companies.php?i d=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
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Miraan.

    You're looking for mod_rewrite, an Apache plugin.

    Comment

    Working...