I have a travel website whose links are not seo friendly so if anyone can help me in getting my site inner pages to be seo friendly will be very much appreciated. Currently my site url is http://emiratesbooking.org/destination-details.php?destination=62 I want to change it to look like http://emiratesbooking.org/destination-details/Emirates-Flights-to-Geneva is it possible? thanks in advance.
Of course it is possible. Imagine this: your content title is Emirates Flights to Geneva, you need to save an "alias" in your database, creating a column like titlealias so having as value: emirates-flights-to-geneva. Then hands on your htaccess file, for example: RewriteRule RewriteRule ^(.*)/(.*) index.php?fileload=$1&contentload=$2 [NC] so for example this URL: http://emiratesbooking.org/destination-details/emirates-flights-to-geneva destination-details is your PHP files destination-details.php and emirates-flights-to-geneva is what you will have to search in your database... Sooo... converting it in code: //In index.php $fileload = $_GET['fileload']; $content = $_GET['contentload']; //Assuming you validated the input include $fileload.".php"; PHP: ---- //In destination-details.php $query = mysql_query ("SELECT * FROM contents WHERE aliastitle='$content' ORDER BY id LIMIT 1"); PHP:
Thanks for your help i appreciate it alot. Can you help me more into this? I am not having much idea on this so if i send you the destination-details.php file can you set this for me? this would be a great help. Thanks in advance.