HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank

Reply to topic Page 1 of 1
seo advice
Message  

Reply with quote
Post seo advice 
i am doing seo for a website and this website uses a lot of php for which i need suggestions. this is how the website is set up.

in the index.php file there is a flash banner at the top of the page and the center part is another file which is called using include("links.php") and the bottom part using include("footer.php")

the footer has links such as = webdevelopment software development ... each of this has a query string= http://website.com/index.php?page=webdevelopment and http://website.com/index.php?page=software ... etc

this way every link in the website is calling index.php and a query string is being passed and the index.php looks for the name ex=webdevelopment and loads that particular page in the center section of the website. the main purpose of doing this was to load the flash file only 1 time and the rest of the time when the links from the footer are clicked only the center part changes and the flash file does not have to reload.

due to this the entire website is having only 1 page index.php therefore using 1 <title> tag 1 meta description and 1 meta keywords tag as the values of <title> and <meta> tags are being displayed from index.php

however from a seo and sem perspective ideally there should be different file name which means i can optimize the <title> and <meta> tags for individual files.

please advice a best solution to get around this as i would like to have different title and meta tag for individual pages like webdevelopment.php software.php etc which i am presently not able to due to include("")

any help will be greatly appreciated.

thanks.

View user's profile Send private message

Reply with quote
Post  
Hi!

You have your php code for the index.php. Therefore you could simply use if, switch..case, or an array of titles. So you could do something like that:

switch($_GET['page'])
{
 case 'webdevelopment':
  $title='web development';
 break;
 case 'seo':
  $title='search engine optimisation';
 break;
}

or just have an array

$titles=array('webdevelopment'=>'web development', 'seo'=>'search engine optimisation');
echo '<title>'.$titles[$_GET['page']].'</title>';

in second case make sure that your page is within the range of the given array, otherwise just place some default value. Like:

echo '<title>'.((@$titles[$_GET['page']])?$titles[$_GET['page']]:'my universal title').'</title>';

Tell me if you need any further assistance,
Tim.


_________________
First free hosting reseller program
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Reply with quote
Post The truth in SEO 
Please try to remember that SEO is not really about spamming or trying to over optimize, but about making relevant, unique content, and structuring it in a logical way for users, if you do this then the search engines won't have a problem either. Just remember to design for humans more than anything else.

With regard to social media marketing, remember to build relationships and serve a purpose, don't spam.


_________________
New York Graphic Designer Roberto Blake

Blog of New York Graphic Designer Roberto Blake
View user's profile Send private message Visit poster's website
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  




FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Web Hosting
Web Hosting and Dedicated Servers Advertise Here $10 a Month Designer Children
Insurance HGH Domain name registration
Affordable web-hosting Dedicated Server Management

Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com