|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Redirection on website - what effect does this have on SEO
Hi people
I am new to forums. I have just written a website shoelaceplace and the first thing I do when a user enters is to use some javascript to retrieve the size of the screen and immediately redirect to another page on the website. The problem is: Robots enter the site and only seem to go to the first page which is the screen detection page. How can I improve my SE ranking in this scenerio ? |
|
#2
|
||||
|
||||
|
You have another problem too ... a browser with cookies off will never get to your site b/c it sits there and continually redirects. This could also be a problem the spiders are facing. Your site should work w/o cookies and w/o JavaScript. JavaScript should be used for convenience factors only, and cookies should be used only when necessary.
Change your JavaScript to have a default that is used when a) the browser doesn't return an available size, and b) the browser doesn't have cookies enabled.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#3
|
|||
|
|||
|
Thanks Jeremy
What I have done is return the screen resolution using java script to enhance the user experience when browsing my website, i.e. the site uses up the entire page width. Do you know how I could return the screen resolution without using javascript. Site is written in asp.net. |
|
#4
|
||||
|
||||
|
JavaScript is the only way to get the screen resolution, but you don't have to store it in a cookie, which is what I'm assuming you're doing based on my experience with your site, and you can provide a default setting if the screen resolution doesn't match any of the ones you specify.
So your JavaScript would do this: Code:
pseudo
if screen resolution is X go here if screen resolution is Y go there if screen resolution is Z go everywhere otherwise go default However, the easiest way to accomplish your goal of using all available space no matter what the available resolution is to use a percentage based layout instead of a fixed width layout. |
|
#5
|
|||
|
|||
|
Yes i agree a percentage based layout would be better
Thanks for your help/suggestions Dave Here is the code for your reference <script language="C#" runat="server">**** public void Page_Load(Object sender, EventArgs e) { if (Request.QueryString["action"] != null) { // store the screen resolution in Session "ScreenResolution"] // and redirect back to MainPage.aspx Session["ScreenWidth"] = Request.QueryString["width"].ToString();************ Session["ScreenHeight"] = Request.QueryString["height"].ToString();** string url = "GeneralDisplayPage.aspx?HeaderSelection=HomePage"; Response.Redirect(url);******** }**** }**** </script> <BODY bgColor="#ffffff"> <script language="javascript"> // JavaScript code below will determine the user screen resolution **** // and redirect to itself with action=set QueryString parameter res = "&width="+screen.width+"&height="+screen.height top.location.href="IndexGeneral.aspx?action=set"+res </script> </BODY> |
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > Redirection on website - what effect does this have on SEO |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|