
The powerful PHP server language over scalability, dynamism and friendliness of static HTML pages. However, PHP can be a difficult nut to penetrate when it is optimizing the search engine. PHP developers have a lot of technical problems, and create scripts based on guidelines Senior PHP.
Some problems that may affect the optimization of PHP pages. Also instructed on how to overcome without technical hiccups:
PHP latency: the time concluded that the PHP code is sufficient to determine the usability Senior Agenda commands. If Spider explores the search engine on the PHP page and follow the link, but are obliged to wait long for the server running the PHP code behind the page, then we may ignore the page or move without having to crawl through the rest of the page.
To optimize the code in the loop and slower to avoid, reduce applications use select *. Select Use the table that the 10 regions where you want to select only as a slowdown was in the script. Instead, get the column names. If you use MySQL, screening questions using a statement said. In addition, to establish links more user-friendly search engine, code reuse time is not repeated enough and static values, such as account values.
Session ID Number: If the "enable-trans-Security Option A, it creates links with session IDs. Long connections grows not only foolish, but also spiders URL different from the same material, which after all can cause problems in indexing pages.
To avoid session IDs in the URL, disable the "Cross-id" in terms php.ini setting "session.use_trans_sid" false. "Otherwise, you can disable the session ID php_flag session.use_trans_sid three aspects of the case. Htaccess in the root directory.
URL of search engines: To optimize your pages to PHP pages look static like search engine, you can use two ways – you can use Apache for static pages URL or wrong that keep your variables to get at least. Clean URL is a crucial question of dynamic PHP pages. Since the pages This created a variable to get the URL is awkward and almost unreadable to the search robots. Use fewer variables to get to avoid the URL as "var page.php? P = & var1 = & var2 = def ghi "
Instead, you can also use GET variables in words relevant securities rich and important terms. If the page requires more variables can be set by defining the variables with the script or characters without using and therefore the ministry page destination.
Should Mod_rewrite: URL Rewrite done after careful consideration, since you can not change your links and more. First decide how you want to rewrite your URLs, and then go forward and apply it in your file. htaccess. For example, the sample mod_rewrite rule as
RewriteEngine On
RewriteRule ^(.*)/(.*)/(.*). URL line changes work. The second line determines how a change orientation of the URL as specified in Part 2 of RewriteRule.
PHP,HTML Tutorial // POST, Table, Forms