Archive for May, 2011
BC2 Vietnam Server
So last month I got a new BC2 Vietnam server (193.93.47.83:19637) which I set to 800 tickets, Conquest with all maps on rotation!
I have now updated the server to be running 600 tickets per round as 800 seemed a little too long for most due to too many people camping and baserape, which we dont want as it makes the game boring for the team thats held down and stuck in the main with little to no chance of getting a flag.
So here are the current server settings if you want to join:
193.93.47.83:19637>> 600 Tickets CONQUEST All Maps! BC2 Vietnam
Current Maps:
Operation Hastings
Hill 137
Phu Bai Valley
Vantage Point
Cao Son Temple
Please feel free to request any map changes you would like that you think may improve the server and bring more regulars to it each night as we currently dont have many regular players who come on each day due to the server being so new.
I would also like for some regular admins to be on besides me so I will be selling admin at just £2.20 per month via paypal. If your interest please feel free to comment here or contact me via facebook (link to left and at top).
Admins will be given, chat, kick, slay and nuke to keep the server live and everyone happy. More admin will be given to those that prove they are responsible enough to have it. Admin rights may also be taken from those that abuse it so please only ask for admin status if you are willing to use it correctly and not abuse your admin rights as thats not what I want!
Battlefield 3 – 12 Minutes Of Gameplay
Battlefield 3 – 12 Minutes Of Gameplay
Watch 12 minutes of gameplay from Battlefield 3, featuring never before shown footage!
Join us as we follow Staff Sgt. Black and his team of U.S. Marines into the bad part of town, as they move to the rooftops to eliminate an enemy sniper in an abandoned hotel.
Read the rest of this entry »
Display Summary On Home Page Not Full Text
So a lot of people always come across the problem of wanting to display just the summary of text on their home page rather then the full text so here are a couple of workarounds to get this working on any wordpress blog.
Option one:
The easiest and best option in my opinion is to edit your home.php or index.php (depending on which theme you are using) in you wordpress admin panel by going to “Appearance > Editor” and then locating the file in the list on the right of your screen.
Click on home.php or index.php and search for the line of code <?php the_content(); ?> and replace it with <?php the_excerpt(); ?>.
Option two:
You can add the tag <!--more--> in your posts html at the point where you want the post’s content to stop displaying on the front page.
This works just the same as option two but you will need to remember to add this tag in each post where you want your summary to end on the home page.
Conclusion:
I’m opinion option one is much better and easier to do as it means you only need ever make that one single edit to your wordpress blog, where as option two means you need to insert a line of code in each posts html for wordpress to know where the summary for each post ends.
I hope you can get your head around it which ever option you pick for your blog
If you have any questions or problems please feel free to leave a comment and I will do my best to reply in a timely manner to help you get your blog running as you want!
.htaccess 301 Redirects
I quite often see questions asking about .htaccess redirects and 301 redirects etc in a number of forums and blogs I am a member at, so I thought it might be nice to post list of different .htaccess redirects which are commonly used in making a site more seo friendly.
This thread is also very helpful for those in need of changing from an old site to a new site.
Before we begin editing any .htaccess code, make sure to download a backup copy of the current one just in case something goes wrong as the .htaccess file is very temperamental and can mess up your site if you enter the incorrect code.
Option 1. www to non-www 301 redirect:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^domain\.com$
RewriteRule (.*) http://domain.com/$1 [R=301,L]
This will make sure all url’s without www. redirect to the www. version of your site. For example nathanielbailey.co.uk would redirect to www.nathanielbailey.co.uk
Option 2. non-www to www 301 redirect:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
This redirects all www. url’s to the non-www. version. For example www.nathanielbailey.co.uk would redirect to nathanielbailey.co.uk
You should use either option 1. or option 2. to make sure search engines only see the single copy of your website as well as help to make sure all link juice and domain weight is pushed to a single url instead of spreading it out across the two.
index.php to domain.com/ redirect (change extension as needed):
Options +FollowSymLinks
RewriteEngine on
# index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
Use this to redirect your index.php default.php home.html or what ever you use to your root domain. For example www.nathanielbailey.co.uk/index.php redirects to www.nathanielbailey.co.uk
This should be use to help stop duplicate pages on search engines as well as make sure that only the single copy of your page gets all the weight from links etc.
301 redirect old page (change extension as needed):
Redirect 301 /old-page.html http://www.domain.com/page.php
If you have any old pages for what ever reason you should make sure to redirect them to the new page (if applicable) or at least redirect them to your home page or a relevant page, so not to have broken links and not to lose out on any old links and link juice.
Redirect Entire Folder/Directory
RewriteRule ^old/(.*)$ http://www.domain.com/new/$1 [R=301,L]
The above line of code will redirect the entire folder to a new folder no matter what the url! The same can be done to redirect an entire folder to your root directory by simply removing /new from the line of code. For example if you wanted to “redirect entire folder to root domain” you would use:
RewriteRule ^old/(.*)$ http://www.domain.com/$1 [R=301,L]
Another option would be to use the “RedirectMatch rule like so:
RedirectMatch 301 ^/old/$ http://domain.com/
This single line will also redirect all requests for the old directory “/old” to your site’s root directory, meaning domain.com/old/anything-here will redirect to domain.com/anything-here as it matches the url minus the old directory.
Change file extension (change extension as needed):
RedirectMatch 301 (.*)\.html$ http://www.domain.com$1.php
This is a simple fix for those that have made the change from .html to .php I updated one of my other sites, all of which used domain.com/page.html which I changed to domain.com/page.php so I could do more with the site.
This can also be used for any extension you like, simple change the .html and/or .php to the extension’s’ you require.
Subdomain Redirects
First of all if you want to your redirects to work correctly you will need to create a new .htaccess file in the subdomain folder you are working from as placing these redirect code’s’ in your root folders .htaccess file will likely not work at all on most server set-ups.
Redirecting Subdomain to non-www
Redirect 301 /ts3/ http://old.domain.com
RewriteCond %{HTTP_HOST} ^new\.domain\.com$
This will make sure your subdomain url is redirecting to the correct place, IE: sub.domain.com rather then www.sub.domain.com or sub.domain.com/sub.
This is an important redirect to have in place, so I always use it all on my subdomains just to make sure they all redirect to the correct url and follow the same url structure site wide.
Remember, this code is placed in your .htaccess in the subdomain, not your root folder!
Redirect subdomain to subdomain
Remember if you want to redirect sub.domain.com to new.domain.com you will need to first create a new .htaccess file in the original subdomain folder for this to work correctly.
RewriteEngine on
Redirect permanent / http://new.domain.com/
Don’t forget this code should have been placed in the .htaccess file in old.domain.com not your root folder or it wont work!
A couple of bits to remember:
Options +FollowSymLinks
RewriteEngine on
- 1. The above should only be used once in any .htaccess file and will always be placed before your redirect code as above examples
- 2. .htaccess will not work on windows, its only for Linux.
- 3. upload .htaccess files in ASCII mode, sending it up as binary will break it.
- 4. Be sure to check for a current .htaccess file, as “.” files are hidden so check your settings to make sure you can see them.
- 5. Remember to change domain.com to your domain!
- 6. Last of all, always check your changes to make sure its working correctly.
There are other ways of doing 301 redirects so if you cant use .htaccess have a search on google and I’m sure you will find what you need, if not simple ask me and I would be more then happy to write up a simple post like this one for other types of redirects you require information on.
**EDIT**
Ok so I have been working on a standard .htaccess file which I can simple slap on all my new sites and client sites without having to make any changes or remember whats doing what! And here it is for all to enjoy
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#
# Rewrite .php to extensionless URL:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
#
# Externally redirect requests for .php URLs to extensionless URLs:
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*[^.#?\ ]+\.php([#?][^\ ]*)?\ HTTP/
RewriteRule ^(([^/]+/)*[^.]+)\.php http://www.domain.com/$1 [R=301,L]
#Above line has to use your url not HTTP_HOST as that dont work!
My New Personal Blog
Hello and welcome to my new blog
I got the domain on my name and wasn’t quite sure what to do with it so I thought I would slap a blog up and do some blogging about myself, what I do for work and the kind of thinks I enjoy in my own time and with friends etc both online and offline.
I have already started the site off with some info on a couple of fixes for wordpress as I encountered them when getting started and found it quite hard to find the right info to help me easily and quickly fix the problems.
Now I have got a start and finally found a theme I’m happy with I dont quite know where to start on my blogging quest! I was going to write about what I do for a living (seo and on online marketing development), seo in general as well as coding tips and fixes etc in general and for cms like wordpress etc, online gaming (fps) as I’m a massive online gamer for games such as BC2 Vietnam.
So if there is anything you would like me to try and blog about or open a dedicated section for you to do some guest blogging please feel free to drop me an email (see contact page when live in top menu) or simply post a reply here if you can
Anyway, got to get back to work now so have fun and keep an eye open for my coming posts on whats to come next!
FTP Upgrade Fix
Some of you may have encountered a problem where you get one or more of the following error messages depending on where your trying to install and update or plugin from within your WP admin area:
- Could not copy file.: /wp-admin/css/theme-editor.dev.css
- Could not copy file.: /public_html/wp-admin/css/theme-editor.dev.css
- Could not copy file.: /…/…/wp-admin/css/theme-editor.dev.css
- Could not create file.: /public_html/
aldenta has created a wonderful plugin which fixes all these problems without having to lift a single finger (apart from uploading the plugin via ftp and then hitting install once back in your wordpress admin area).
This plugin basically fixes the problems that prevent your wordpress from installing or updating; updates, themes and plugins. These problem generally occur on some FTP servers which have a typical Pure-FTPd configuration.
This is simply down to the way the servers configuration works due to Pure-FTPd having trouble updating WP via FTP from the wordpress interface.
Each of these cases seem to be related. There is a patch going into WordPress 3.2 that should take care of the issues and the plugin will be obsolete after updating to that version (http://core.trac.wordpress.org/ticket/10913).
In the meantime, install and activate this plugin to get your updates, themes and plugins all working as expected. Download link: http://wordpress.org/extend/plugins/ftp-upgrade-fix/
WordPress Fixes
As most of you probably know from past experience with wordpress and/or encountering things on your own blog and others blogs in the past, wordpress has its bugs and problems from time to time which we all need to sort out and over come as fast as possible when it happens to go wrong on our blogs.
For this reason I have decided to add this section to the site so we can all find a number of common wordpress fixes in one handy to use and easy to find place.
The much awaited BF3 map pack for Back To Karkand is finally here!…




I work in Online Marketing Development for some medium to large size companies in the UK doing SEO, Online Marketing and Coding. I like to spend my spare time playing online games such as BC2 Vietnam with my friends, and playing around with websites such as building them, making changes and keeping content up to date etc. I also work on and run a number of sites for online solutions from web hosting to game servers and much more. Read more about me and my sites at


