Aliante Search Engine Optimization | Internet Marketing Blog | SEO Web Design

phone - call us

Aliante Web Design is proud to announce the website for Cool Air Now Ac Repair. They provide air conditioning and heating services for the community of Las Vegas.
cool-air-now-ac-repair

Conveniently located just east of the Vegas strip on Charleston. Friendly staff, experienced techs and SUPER-LOW rates are just a few reasons to come and see what they’re all about.

We are proud to add Now Services to our growing list of Clients!

Cool Air Now AC Repair
1918 East Charleston Boulevard
Las Vegas, NV 89104
USA

Phone: (702) 605-6100
Email: info@coolairnowlv.com

Aliante Web Design is proud to announce the website for Sealy Dog Beds.

Sealy Dog Beds

Sealy Dog Beds’ website is programmed and designed in Joomla. They started selling the world’s best dog bed as of November 1st, 2013. Now you can buy your dog a high quality dog bed that can make a huge difference in your dogs quality of life. With over 130 years of expert sleep technology experience; the Sealy Dog Bed brings you the most technologically advanced bed that both you and your dog will love.

Visit the dog bed site and be one of the first to purchase the new cooling gel, memory form beds for your doggie. Your dog will love you for it!

Page to Page 301 Redirect

The page to page redirect in .htaccess should only be used for pages within a website such as oldpage.html to newpage.html. Or oldpage.php to newpage.html.


301 redirect: Redirect 301 /seo.php http://www.mysite.com/newpage.html


However, if you are getting a forward slash at the end of your “newpage.html/” then you may want to use the Sub-directory to Html rewrite rule instead.

Sub-directory to a HTML Page

To do a permanent redirect from a sub-directory to a HTML page such as mysite.net/seo/ to mysite.net/seo.html you should do the following:


Options +FollowSymlinks
RewriteEngine on
RewriteRule ^mysite.net/seo/ /seo.html [R=301,L]


In addition, if you are getting dynamic URLs at the end of your redirect for example newpage.php?id=section1 then this would likely be a code-order problem, where the internal rewrite of the static URL to dynamic URL is occurring before the external redirect.

In order to control the order of execution you will need to adjust the mod_rewrite version of the redirect, and place the redirect ahead of the internal rewrite. Further, you’ll want to clear any query string received with the client request:


Options +FollowSymlinks
RewriteEngine on
RewriteRule ^mysite.net/seo/ /newpage.php[b]l?[/b] [R=301,L]


Tagged with:  

Aliante Web Design Las Vegas is proud to announce the website for Blue Skies Consulting.  Blue Skies  signed up for web design and online marketing.

blue-skies-consulting

Blue Skies Consulting is an airline tenant improvement company specializing in aviation architectural millwork, airport millwork and gate counters solutions.  They have worked for most of the major airlines such as JetBlue, United Air Lines, Southwest Airlines and Delta.  They provide the best in airline project management.  In 2013, Blue Skies started to offer custom Museum millwork. If you need great, professional custom airline or museum millwork work then call Blue Skies Consutling!


Blue Skies Consulting
8901 Rusty Rifle Ave
Las Vegas, NV 89143-1113
Phone: (702) 858-1039
Email: info@blueskiesconsulting.us

How to detect iPhone/iPod using javascript/jQuery?
Redirecting your iPhone users to mobile version of your site using javascript and alternative and better way to redirect your visitors using server-side PHP code snippet.

The latest buzz around jQuery is upcoming jQuery mobile – support for mobile devices. Current jQuery core work fine on iPhone and iPod touch browsers and most of us have created a mobile version of our websites, developed or converted websites for others. Basically, jQuery is already being used on iPhone and iPod touch devices. Without any further ado…

Javascript code to detect iPhone and iPod browsers

On Page:

<script>

if((navigator.userAgent.match(/iPhone/i)) ||

(navigator.userAgent.match(/iPod/i))) {

if (document.cookie.indexOf(“iphone_redirect=false”) == -1) window.location = http://www.example.com/m/; }

</script>


// Return boolean TRUE/FALSE 
function isiPhone(){ 
return ( 
(navigator.platform.indexOf("iPhone") != -1) || 
(navigator.platform.indexOf("iPod") != -1) ); }

 


You might wonder why do we even need to detect if our website is ran on iPhone Safari or normal desktop Safar if jQuery works fine on both. Well, there are Safari specific CSS features that you might want to utilize and you need to know if the current browser is Safari, then you may also want to consider reducing resource consuming features like animations for iPhone version of your site.

Redirecting iPhone & iPod users

You may also use this script to redirect iPhone and iPod users to your website’s mobile version:

// Redirect iPhone/iPod visitors
function isiPhone(){
return (
(navigator.platform.indexOf("iPhone") != -1) ||
(navigator.platform.indexOf("iPod") != -1)     ); }
if(isiPhone()){     window.location = "http://www.example.com/mobi/"; }

For example: if your website is www.example.com and you have a mobile version at example.com/mobi/, then put the following script to your www.example.com.

Redirect iPhone users using PHP

It is better to detect and redirect your iPhone users on the server-side. Here is a PHP code to redirect iPhone users:


// Redirect iPhone/iPod visitors
if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod')){
header("Location: http://www.example.com/mobi/"); }

 


User agent strings for your reference:

/* User Agent String for iPhone     Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko)     Version/3.0 Mobile/1A543a Safari/419.3      User Agent String for iPod Touch     Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko)     Version/3.0 Mobile/3A101a Safari/419.3 */