Submit rewritten URL to Google

Let’s say I have this website about fruit. It’s database (MySQL) driven, so I have this template file, that gets populated using POST. But I want google to be able to find each food as a page. So if I’d search: banana, I would get something like this in Google:

Banana | Fruit Website
http://www.fruitwebsite.com/fruit/banana
This website will give you all information about the banana.

I know I have to rewrite
fruitwebsite.com?fruit=banana’ to ‘fruitwebsite.com/fruit/banana
I also know how I have to do this and that I have to this in the .htaccess file.
The only thing I don’t know is how do I make the SEO friendly link in appear in Google. I’ve heard people say this should be done by adding the SEO friendly URL to your XML sitemap, but then my site wont’t have a title, nor a description, right? So the answer isn’t probably that easy.
I’m not an advanced PHP programmer, so if this could be done easily, but efficiently, that’d be awesome!

Thanks in advance!

Hi
I guess you mean “your page” won’t have a title or description. If that is the case then you need to dynamically generate those from the post data. The post data contains the words “fruit” and “banana” so use these to make a unique page name and description.

Add the rewritten url’s to your XML sitemap.

Hope this helps

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.