0

Hi:

I'm creating one classified site, in that we need to write SEO friendly urls for google page ranking and optimisation. How to do that any one pls help me.

Edited by Dani: Formatting fixed

2
Contributors
1
Reply
19
Views
2 Years
Discussion Span
Last Post by matrixdevuk
0

There are many tutorials that you can find within Google's web index (search engine, with a little more fancy terminology added).
Here's an example:
zenverse.net tutorial
Example of .htaccess code:

Options +FollowSymLinks

RewriteEngine On
RewriteRule ^topic/([a-zA-Z0-9]+)/$ index.php?topic=$1

This would route yourdomain.com/topic/{id} to yourdomain.com/index.php?topic={id}.

If you wanted lets say, profiles... you could do something like this:

Options +FollowSymLinks

RewriteEngine On
RewriteRule ^profile/(.+)/$ profile.php?user_id=$1

This example (I modified the one above) would route yourdomain.com/profile/{user_id} to yourdomain.com/profile.php?user_id={user_id}.

I hope this helps, and I recommend doing research before asking... this gets asked way too much!

Have a good day.

Edited by matrixdevuk

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.