guy.4u80 Posted April 14, 2009 Share Posted April 14, 2009 Hi, I am working with PHP and Mysql, working on a classified site. I have Two Question for you: 1. how to make URL like kijiji, like toronto is before kijiji ??? How I can manage to have code like that so my Session variable goes right before my site name. example: http://toronto.kijiji.ca/ 2. How to make URL without extentions like the below, have cat id and RAND() without extension, So how ???????/ http://toronto.kijiji.ca/f-buy-and-sell-cameras-camcorders-W0QQCatIdZ103 Thanks Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 14, 2009 Share Posted April 14, 2009 These are done with Apache's mod_rewrite. We have a separate forum section for it, take a look. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 14, 2009 Share Posted April 14, 2009 The questions you have asked has nothing to do with PHP, but 1. That form of url is known as a subdomain. Your website host should provide a facility for setting up subdomains. 2. Clean URLs are archived using mod_rewrite Quote Link to comment Share on other sites More sharing options...
guy.4u80 Posted April 14, 2009 Author Share Posted April 14, 2009 thanks for quick reply guys. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.