blirette Posted February 24, 2009 Share Posted February 24, 2009 Hi! I'm fairly new to all this « mod_rewrite » thing but it seems to be the only way to help me with something. Here's what I have to do : Let's say I have this website « www.website.com ». I'd like any URLs to point to the same file for 3 URLs (languages) entered. Example : www.website.com/nouvelles.php should be displyed as www.website.com/nouvelles.php BUT use the file news.php to display the content of the website. In short : www.website.com/nouvelles.php www.website.com/destacados.php www.website.com/news.php ...should use the file « news.php » to display the content BUT the URL should stay as entered. Is « mod_rewrite » the answer to this? This would improve the SEO of the website because now I use things like « news.php?lang=es » while it should be (at best) « destacados.php » or « destacados.php?lang=es ». Thanks a lot for your precious time! Quote Link to comment https://forums.phpfreaks.com/topic/146740-translating-urls-on-the-fly-redirect-to-one-file/ Share on other sites More sharing options...
blirette Posted February 25, 2009 Author Share Posted February 25, 2009 So... I've check some websites and I think another way would be to redirect all hits to a webpage and then redirecting to another page with only the url displayed in another language but calling the real file.php. What do you think about that? Quote Link to comment https://forums.phpfreaks.com/topic/146740-translating-urls-on-the-fly-redirect-to-one-file/#findComment-771199 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.