bruckerrlb Posted December 3, 2008 Share Posted December 3, 2008 Hello, I'm trying to create a script where the following conditions apply: A user enters a random page (not home page) on my site through a search engine When that condition has been met, I'd like for the following to happen: User is re-directed to home page Does anyone know of a script for this or is it controlled in htaccess. I'd like my site to be crawled by the search engines, and found, it's just that I'm working with lightwindow and using html snippet type pages (pages without the rest of the page format) for the light window to pop up, and if a user clicks on let's say the management page from a search engine, it'll be ugly and confusing, so I'd like to re-direct them to the home page since I only have three pages, and the majority of my information contained within the three pages is controlled by light window. Quote Link to comment https://forums.phpfreaks.com/topic/135390-solved-search-engine-re-direct/ Share on other sites More sharing options...
Maq Posted December 3, 2008 Share Posted December 3, 2008 You can use javascript. You can check where the user came from using document.referrer. You will have to play around with it and come back with a specific question. There may be an easier way but not to my knowledge. Quote Link to comment https://forums.phpfreaks.com/topic/135390-solved-search-engine-re-direct/#findComment-705180 Share on other sites More sharing options...
bruckerrlb Posted December 8, 2008 Author Share Posted December 8, 2008 okay, thanks! When that happens I"ll post in the javascript forum, thanks again for pointing me in the right direction Quote Link to comment https://forums.phpfreaks.com/topic/135390-solved-search-engine-re-direct/#findComment-709366 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.