Reply
Old 07-20-2006, 12:59 AM SEO and CSS
Ultra Talker

Posts: 407
Trades: 1
Are there any "penalties" from having CSS in your actual code, instead of having it linked to an external CSS file?
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
 
When You Register, These Ads Go Away!
Old 07-20-2006, 01:09 AM
Quizak's Avatar
$1,000 - $4,999 Monthly

Posts: 73
Trades: 0
The only thing I can think of is that your content vs code will be a different %. The more code and less content %, the more "penalties" occur if you want to call it that. More then anything, just try to have clean and simple code, the less code, the better within each page.
Quizak is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 01:25 AM
Ultra Talker

Posts: 407
Trades: 1
What would be the best way to create a multilingual site and have it indexed in both languages? This is what I have come up with so far but I don't know which one would work the best (or if there is an even better option).
  • Script detects language from the headers, and then user will be able to change it through a link that sets the appropriate cookie.
    • This would not work well with search engines.
  • Make an intro page where the user is presented a link to either one or the other version.
    • Have different languages on different subdomains (en.site.com/page).
    • Have different languages in different directories (site.com/en/page).

I will be coding this in PHP so I will be using Apache ModRewrites to make the URL look nice and have a language file which loads the appropriate language. I won't actually be copy/pasting the site two times in each directory. :P

By the way, how do search engine spiders treat HTTP Redirects?
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
Old 07-20-2006, 01:50 AM
$100 - $999 Monthly

Posts: 328
Trades: 2
Quote:
Originally Posted by Quizak View Post
The only thing I can think of is that your content vs code will be a different %. The more code and less content %, the more "penalties" occur if you want to call it that. More then anything, just try to have clean and simple code, the less code, the better within each page.
but the other way around also works:

If you are copy-pasting content from other sites, having lot's of code on your page helps to get the % similarity down....
SEO Portal is offline
Reply With Quote
View Public Profile Visit SEO Portal's homepage!
 
Old 07-20-2006, 02:11 AM
Ultra Talker

Posts: 407
Trades: 1
If anyone could answer my previous questions, that would be great. I also have another one though. Which of the following is the most SEO URL?
  • site.com/index.php?act=blablabla (I'm guessing this is the worst one)
  • site.com/blablabla/
  • site.com/blablabla
  • site.com/blablabla.html
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
Old 07-20-2006, 04:23 AM
Junior Talker

Posts: 69
Trades: 0
Hi Lucas,

Quote:
Originally Posted by Lucas View Post
What would be the best way to create a multilingual site and have it indexed in both languages? This is what I have come up with so far but I don't know which one would work the best (or if there is an even better option).
  • Script detects language from the headers, and then user will be able to change it through a link that sets the appropriate cookie.
    • This would not work well with search engines.
  • Make an intro page where the user is presented a link to either one or the other version.
    • Have different languages on different subdomains (en.site.com/page).
    • Have different languages in different directories (site.com/en/page).
You should definitely NOT use any solution based on Cookies, Browser language, Sessions and such. This way you only stop the search engines from indexing all but the default language version.
The way to go here is the distinction in the URL. Whether you choose to go with subdomains or "directories" is IMO up to you. However I wouldn't make an intro page. Intro pages are in general a no-no. Instead make one language the default one and show the homepage in this particular language to a new user. Put language switches on every page of the site.


Quote:
Originally Posted by Lucas View Post
By the way, how do search engine spiders treat HTTP Redirects?
There are more redirects. In short - 301 goes for permanent redirects, 302 for temporary. Be warned, if you write only
PHP Code:
Header('Location: http://example.com'); 
you redirect with the default 302. For 301 the code should go like this:
PHP Code:
Header('HTTP/1.1 301 Moved Permanently');
Header('Location: http://example.com'); 
But then again, this might not be new to you.
lenz is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 04:55 AM
Junior Talker

Posts: 69
Trades: 0
Quote:
Originally Posted by Lucas View Post
Which of the following is the most SEO URL?
  • site.com/index.php?act=blablabla (I'm guessing this is the worst one)
  • site.com/blablabla/
  • site.com/blablabla
  • site.com/blablabla.html
The second and the third are good. There are hot discussions on whether to use the last slash or not. I myself prefer slash for categories and directories (for example a category in an e-shop) and no slash for target pages (e.g. a product in an e-shop, an article etc.). The reasons for this are purely psychological, so you may as well choose a different combination.
The first one is not good because of the arguments in the URL, the last one because of the ".html" ending (which makes the page format-dependent and possibly problematic regarding the "Cool URIs don't change" rule).
lenz is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 10:27 AM
Ultra Talker

Posts: 407
Trades: 1
Quote:
Originally Posted by lenz View Post
There are more redirects. In short - 301 goes for permanent redirects, 302 for temporary. Be warned, if you write only
PHP Code:
Header('Location: http://example.com'); 
you redirect with the default 302. For 301 the code should go like this:
PHP Code:
Header('HTTP/1.1 301 Moved Permanently');
Header('Location: http://example.com'); 
I've never sent the actual 301 response, just the location header. Will google be able to follow that? For example if I have the main page redirect to /en/home?
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
Old 07-20-2006, 11:15 AM
Junior Talker

Posts: 69
Trades: 0
If you redirect with the HTTP code 301, all search engines are able to follow the redirection and index the target page normally. 302 is a bit different and you should not use it unless you know what you are doing.
The majority of all redirects is (should be) 301.
lenz is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 11:22 AM
Junior Talker

Posts: 69
Trades: 0
Quote:
Originally Posted by lenz View Post
The second and the third are good. There are hot discussions on whether to use the last slash or not. I myself prefer slash for categories and directories (for example a category in an e-shop) and no slash for target pages (e.g. a product in an e-shop, an article etc.). The reasons for this are purely psychological, so you may as well choose a different combination.
The first one is not good because of the arguments in the URL, the last one because of the ".html" ending (which makes the page format-dependent and possibly problematic regarding the "Cool URIs don't change" rule).
Why, then, do blogs get indexed so quickly? For the most part, every page on a blog is an argument to the basic URL.

Allen Bohart
The Fishing Bobber
abohart is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to SEO and CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12780 seconds with 13 queries