Jump to content

Recommended Posts

I've got a question, I've created a website, with the majority of the information one one page, utlizing lightwindow. What this basically does is it calls an html file and displays it like lightbox does. The only problem I'm thinking I might encounter is when a user finds a page intended to be displayed on lightwindow on the search engine. The reason this could be a problem is because it's only intended to be displayed using lightwindow (there is no fancy UI or anything like that outside of lightwindow, it looks weird.

 

So my question is, how can I use javascript to re-direct a user when he/she finds a page on a search engine to go to the home page. I know how to do a regular redirect, but am not sure how to do it in javascript or set up the conditions for it to only be applied when a user comes in my site through a search engine. Any help is greatly appreciated!

Link to comment
https://forums.phpfreaks.com/topic/136488-javascript-re-direct/
Share on other sites

Thanks for the heads up on the meta tag, I'm sure that will come in handy down the road. For the time being, I'd like for the search engines to crawl the sites, because a lot of my keywords are found on these pages. Yet the thing is the pages are to be presented in a special way using lightwindow

 

http://www.stickmanlabs.com/lightwindow/

 

When they find the html page in a search engine, I'd like for them to be automatically brought back to the index page so they can view the content correctly. Any ideas? Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/136488-javascript-re-direct/#findComment-712510
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.