Hi, Thanks for your help and direction. Im new into this and dont have much knowledge about all this issues. Here is the type of pages I have on my site:
example.com/review.php?cid=2&carpet=royal - 100 pages with different cid's and different carpet names Want to change to example.com/carpet/royal
example.com/gas.php?gas=oxygen - 10 pages with different gases names. Want to change to example.com/gas/oxygen
example.com/toxic_gases.php - 10 pages with different type of gases details Want to change to example.com/toxic_gases.php
example.com/pages.html?action=Disclaimer - 10 pages with different type of actions. Want to change to example.com/Disclaimer Please guide me what changes i need to do for the same. My site already having a .htaccess file and scripting is:
SetEnv DEFAULT_PHP_VERSION 5.3 RewriteEngine On RewriteCond %{HTTP_HOST} ^http://localhost/ RewriteRule (.*) [localhost...] [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/ RewriteRule ^(.*)index\.html$ /$1 [R=301,L] RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^(.*)$ example.com/$1 [R=permanent,L] RewriteEngine on RewriteRule ^(.*)\.html$ $1.php RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ example.com/$1 [R=301,L] Please help me out of this.. Thanks & Regards, Gagan
If the ID number is not going to appear in the new URLs, then you need to internally rewrite to a PHP script that then issues the redirect. This script will need to look in the database to see what the new URL will be.
Your current htaccess file has a large number of errors and inefficiencies. Luckiliy these are the same ones that are mentioned or discussed several times each week here.
Use http://www.example.com and http://example.com in this forum to prevent URL auto-linking.