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.

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

Phone: (702) 605-6100

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

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 to you should do the following:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^ /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 ^ /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 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

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:


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

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

if (document.cookie.indexOf(“iphone_redirect=false”) == -1) window.location =; }


// 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 = ""; }

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

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:"); }


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 */

Are you having problems where your server’s information is showing in the “From” line and you want to show your customer’s email address (or the person who filled out your online form) instead?  Your original code may look like this below…

Original code:
$name = stripslashes($_POST[‘name’]);
$email = trim($_POST[’email’]);
$subject = stripslashes($_POST[‘subject’]);
$message = stripslashes($_POST[‘message’]);
$phone = stripslashes($_POST[‘phone’]);
$answer = trim($_POST[‘answer’]);
$error = ”;
$headers .= “From: $email\n”;
$headers = ‘MIME-Version: 1.0’ . “\r\n”;
$headers = “Content-Type: text/html; charset=iso-8859-1\n”.$headers;

Now revise your code to the following:

Revised Code:
$name = stripslashes($_POST[‘name’]);
$email = trim($_POST[’email’]);
$subject = stripslashes($_POST[‘subject’]);
$message = nl2br($_POST[‘message’]);
$phone = stripslashes($_POST[‘phone’]);
$answer = trim($_POST[‘answer’]);
$error = ”;
$headers= “From: $name $headers.= “Reply-to:” . $email . “\n”;
$headers .= ‘MIME-Version: 1.0’ . “\r\n”;
$headers = “Content-Type: text/html; charset=iso-8859-1\n”.$headers;

The items the were updated:

  • $message in order to have the message text properly shown.
  • Updated “From” line.
  • Updated  the “Reply-to” line in order to reply to the person who filled the contact form and not ourselves.
  • Added a ”.” in the line of the MIME in order to send the mail with the mail of person who filled the contact form

I hope it helped people who use this awesome and easy script. If I made some mistakes in those modification don’t hesitate to correct me (I’m not a php dev.).