CodeIgniter SEO

How to write SEO friendly urls in CodeIgniter

Hi, In this post i will going to explain about How to write SEO friendly urls in CodeIgniter using .htacess file. create  .htaccess file with the following contents. DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] Then url will be http://localhost/codeIgniter/[controller-name]/[method-name] /   It will be …

Continue Reading
Articles SEO

What is SEO? and techniques to maintain SEO?

SEO standards for Search Engine Optimization. To find the all relevant data or contents or information through the search engines. The 60% of people to find the information from the search engines. Search engines are : E.g.:   Google, Live, MSN, Yahoo, Alta vista Search engines are to crawl all the websites. The data are placed …

Continue Reading
SEO

What is robot.txt? Syntax of robot.txt?

What is robot.txt? This is a file for in the website some of the folder we dont want to crawl by the search engine optimization, suppose in the images folder we dont want to crawl . The syntax for the robot.txt **************** User-agent: Disallow: **************** User- agent  : This is for Search engine name Disallow …

Continue Reading
PHP Code SEO

Generation of SEO URL in php code

Hi friends below two lines of code is for the generation of user friendly and seo (search engine optimization) urls. It removes the all white spaces in the url and replace it with the ‘-‘. It removes the all white spaces at the end of the urls. It removes the unambiguous text in the urls. …

Continue Reading
PHP Code SEO

SEO – URL using php code and .htaccess

In this post i would like to explain about generate seo urls using php code and .htaceess. The following function for seo urls generation with the php code PHP Code <?php function cleanURL($string) { $url = str_replace("’", ”, $string); $url = str_replace("%20", "", $url); $url = preg_replace(’~[^\\pL0-9_]+~u’, ‘-‘, $url); // it is for substitutes anything …

Continue Reading