check this tutorial out
http://www.yourhtmlsource.
Will help you implementing the above which is not so hard
Main Topics
Browse All TopicsHi,
I have a simple php dynamic site containing(6 pages) linking one to another in the following order:
Choose Category -> Choose State -> Choose City -> See lawyers list -> Lawyer Details.
See the live files here: http://www.rapidshareme.co
As you may see the URL's are dynamic, I manage all data displayed using url parameters. All necessary is passed in the URL variables.
What I want is to REWRITE these dyamic URL's in SEO friendly URL's as follow:
1- Dynamic: http://www.rapidshareme.co
1- SEO FRIENDLY: http://www.rapidshareme.co
2-DYNAMIC: http://www.rapidshareme.co
2-SEO F: http://www.rapidshareme.co
3-DYNAMIC: http://www.rapidshareme.co
3-SEO F: http://www.rapidshareme.co
4-DYNAMIC: http://www.rapidshareme.co
4-SEO F: http://www.rapidshareme.co
Please notice that i can not enter the rewrite rules one by url since I have thousand of records.
Is this to hard to implement?
Please Experts, give me some help.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
check this tutorial out
http://www.yourhtmlsource.
Will help you implementing the above which is not so hard
Hi, thank you. I've tied many tutorias and it's quite confusing for me, that's why I ask experts here. At least I would like to see some example here on how to implement one of my links above stated taking in consideration the URL strcture:
4-DYNAMIC: http://www.rapidshareme.co
4-SEO F: http://www.rapidshareme.co
Any example please ?
Your simple observation helped me a lot to understand this. You're right I'm pretending to convert numbers in texts in the url. ok, I understand better now this.
It's very interesting to hear about this RewriteMap you just mentioned, something that I really want to learn to work with. Could you please point me to a few good tutorials RewriteMap?
Thanks you so much.
this
http://www.rapidshareme.co
can be rewritten as using a rewrite rule
http://www.rapidshareme.co
Yes, I know that can be done with this format http://www.rapidshareme.co
But I want this way http://www.rapidshareme.co
Can someone explain more on how to implement it using RewriteMap ?
Hi,
I have changed the url's numeric values into the TEXT values to make this easier:
Now this is the structure:
1- Dynamic: http://www.rapidshareme.co
1- SEO FRIENDLY: http://www.rapidshareme.co
2-DYNAMIC: http://www.rapidshareme.co
2-SEO F: http://www.rapidshareme.co
3-DYNAMIC: http://www.rapidshareme.co
3-SEO F: http://www.rapidshareme.co
4-DYNAMIC: http://www.rapidshareme.co
4-SEO F: http://www.rapidshareme.co
PLEASE can some Expert give me the code to get this structure?
Thanks
If this:
http://www.rapidshareme.co
can be rewritten as this:
http://www.rapidshareme.co
... it follows that this:
http://www.rapidshareme.co
can be rewritten as this:
http://www.rapidshareme.co
So maybe a combination of minor changes in your explicit URLs and a few simple rewrite rules will get you what you need.
@ahoffmann: thanks for that link! Best to all, ~Ray
Hi Ray,
Thank you for your reply. maybe you did not notice my previous post. I chaged all numeric values in the URLs into the final text value to make it easier.
I made wring the number 4 link
Now they are like this:
mysite.com/lawyer_details.
should be rewrited like this:
mysite/car-accidents/flori
How is the code of the .htaccess to get this structure?
Please. Thanks.
RewriteCond %{REQUEST_URI} browse-by-state.php
RewriteRule /browse-by-state.php\?id_s
RewriteCond %{REQUEST_URI} browse-by-city.php
RewriteRule /browse-by-city.php\?state
RewriteCond %{REQUEST_URI} lawyers_result.php
RewriteRule /lawyers_result.php\?state
# Note that these rules *do not* change your upper/lower cases
# The dynamic example works with RewriteMap only
I attach all content of .htaccess I have on my server (root)
Here the live links http://www.attorneysatlawf
Thank you for your help.
Yes, I just want to have these links: http://www.attorneysatlawf
What I mean with "nothing happens" is that the URLs remain the same, the don't become SEO friendly. This should happens after uploading the .htaccess files with the rules to the server.
ahoffmann, I hope you understand me now.
Thanks again.
well, then you need to change the links in your web page first
then we can change the RewriteRules, but that's difficult for your current examples as there is no unique pattern to detect a state, city or whatever
If you cannot make easy to identify pattern (strings) for state, city etc., the you end up with RewriteMap again.
the link in your page needs to be for example
http://www.rapidshareme.co
which then will be changed using mod_rewrite to for example
http://www.rapidshareme.co
This is the right link to the files: http://www.attorneysatlawf
Business Accounts
Answer for Membership
by: FernanditosPosted on 2009-05-28 at 13:33:20ID: 24497578
As for my server info:
I use Linux/Apache - mod rewrite supported