Call me on Skype
SEO Categories

htaccess Issues

htaccess Issues 

 

HTACCESS TO GET RID OF THE NON WWW AND WWW PROBLEM - NOT FOR WINDOWS SERVERS – ONLY FOR UNIX OR LYNUX SERVERS.

STEP 1
Open a .txt file in notepad.

STEP 2
Paste the four lines below into the text file.

Options +FollowSymLinks 
RewriteEngine On 
RewriteCond %{HTTP_HOST} !^(.*)\.yourdomainname\.com$ [NC] 
RewriteRule ^(.*)$ http://www.yourdomainname.com/$1 [R=301,L] 

STEP 3
Replace “yourdomainname” with your domain name.

STEP 4
If you have another domain extension other than .com change the .com in two places.

STEP 5
Save the file as htaccess.txt

STEP 6
Upload the file in ASCII to the root of your server. 

STEP 7
Rename the file to .htaccess  (Place the “.” dot infront and remove the .txt at the end.

____________________________________________________________________________

HTACCESS AND DYNAMIC URL’S 

If your website is hosted on a UNIX / LINUX server and you have .php pages that are generated from a database and the url’s are dynamic (meaning the url’s contain ?and other parameters in them it is advisable to have your website developer modrewrite these pages by using htaccess. 

Many content management systems and php scripts allow you to configure search engine friendly url’s. 

So instead of having a url that looks like this “propertydetails.php?p=2150″  it would be better to have a url that likes like this “villaforsaleinmarbella.php” 

Search engines prefer this.

FURTHER READING – HTACCES

http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml

http://www.webweaver.nu/html-tips/web-redirection.shtml



[[T_F]]Data Leak Prevention – Data Security Solutions – Information Theft Protection, Detection and Prevention Software Productstracefusion_signature=a484c76f8febc90d71f7c2d1d1725c966c42a1f1cd59ed43133655116ae1428ade6574f3b3fa83a639de17468a9da40a1cb465e8484e38c462d23c40433bf178151188fdce6a92269550b8531a18ecbee7083ff7bfbc0ca2b22130b56e1eb224f6c89bb7075e95a2c65e8bc5c2734ce535bf939dbc4278d2365666c2e0b808ca340f436d4fb8c66d58bb9aa311774a09daf36a67acd9f82cd18c7489a02ec4ec52dab16e22b11ee4ef8aed1214bc33ab66564c20bcc3f5df96ae7d263d3955d73c3bdb8a8f5563ff10436b8919524a0bf77cedb154febcd759d4ed47531cd27757754e05b2bfcb726413a57ae01b9272360855e809bb5db5634526b6609d95cba76a2de7c17c8e8c7c441fcbae428c9a786d955886c0ea960f4514d408214564925d888cdeeddc5fe60bbdd18e410f002e3bbd00360cfa35efb6a0962ae911900f507260d4c6706eb22b3f0ec8ee697272680b60d3d0e9b31489cf9f754a8b8b559eaacc4be9a62eac1119134ab2dd8e697631b8a0ce58a2166d0f46198b1f5677f5d4d602c31220ed961f4f00bb213a35c2d5f24c4fc4403788eab3f1b775d34de2f0a564e4c262c967f419745e7bae651beafe76741c67a1d7246dfeb2c55d6afa10d0274837bee753a1b5bc9d70d8022f517348b36cf607c7e519c61d07d79c121f8ecdffaf7a41ed55d07d1b7d3a9ee23a039ee23bf7[[T_F]]