Talk Arcades > Arcades > Scripts & Software > GameSiteScript

Welcome to Talk Arcades, the premier forum for arcade webmasters.

You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and talk advantage of the GameFeed™ Distribution Network for 1-click installation of games into your arcade.

Registration is easy, so please join us today!

Reply
 
LinkBack Thread Tools Display Modes
Old 02-05-2010, 04:58 PM   #1 (permalink)
rive0108
Arcade Elite
 
rive0108's Avatar
 
Join Date: Jul 2009
Location: Va, USA
Posts: 1,312
rive0108 is on a distinguished road


Default Create custom error document pages, and enable robots meta tags for pages

Tutorial can be found here:
http://www.gssmods.com/forumdisplay.php/5-GSS-Mods-Plug-Ins-

Here is an excerpt-
I have created a new "Robots" section in admin area>pages, where if i enter text like (noindex,nofollow), it overrides the default for that page only (and anything that calls the page- like the server)
I needed this because I created 5 custom error documents (400,401,403,404,500), and didnt want them indexed or followed by search engines.
Also, any pages pulled up by users that trigger a server error document will not be indexed or followed.
here are screen shots:


here is the default for all pages (if no text entered):
Quote:
<meta name="robots" content="index,follow" />
Here is the customized 404/403 error page source for robots:
The other 3 (400,401,500 are not really testable, so I didnt link examples)
404
http://www.havocarcade.com/p
403
http://www.havocarcade.com/adver
Quote:
<meta name="robots" content="noindex,nofollow" />
Code:
<head> <title> Havoc Arcade - 404 Not Found </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="keywords" content="not found" /> <meta name="description" content="content not found" /> <meta name="robots" content="noindex,nofollow" /> <meta http-equiv="cache-control" content="no-cache" />
INSTALLATION:
First lets create the error doucuments, and set them up in .htaccess, then we will edit the files-
Create the following Error pages using this format, and then add your unique page content:
Example:
Quote:
Title=404 Not Found
content=Sorry, but that page could not be found.
meta description=content not found
meta key= not found
meta robots=noindex,nofollow
Create error pages for the following (using the above format):
note- error codes definitions: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
404 Not Found
403 Forbidden
500 Server Error
400 bad request
401 Unathorized
Now tie all your custom error pages into .htaccess (change text in red to match your new error document page):
note- this is for mod_rewrite urls, if using query_string yours will look like this
Quote:
index.php?params=page/10/

Last edited by rive0108 : 02-06-2010 at 12:59 PM.
rive0108 is online now  
Digg this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT -6. The time now is 01:34 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6
© TalkArcades.com
Forum - Register - Calendar - Memberlist - FAQ - Search