I want to rewrite the urls in my php forum to be SEO friendly. Currently they look like this http://www.logisticforums.com/forum/viewtopic.php?t=9067 I would like it to look like this. http://www.topictitle.logisticforums.com So I want: - the url put converted from dynamic to static - the topic title replace the topic id - the topic tile be put before the domain instead of after it. I know I need a .htaccess file but got no idea about the code I need in it. Please help!
I think you need to rejigger your urls so they look like: http://www.logisticforums.com/forum/...pic.php?t=9067&topic=thread_topic Then it would be easy to use mod rewrite so they'd look like: http://www.topictitle.logisticforums.com/9067/ or http://www.logisticforums.com/9067/thread-topic/ As of now you really have nothing to rewrite except a number. I not sure how meaningful it is anyway - digital point and sitepoint use the same url format as you do and google indexes them just fine.
When you are a high PR site the title counts for more so having the url the same isn't as important. I like the first option. How do I do it?
Hm. I don't understand why you'd want something like www.<something>.yourdomain.com - it's not SEO friendly, in that it creates hits on subdomains, instead of the main page. It's also a lot harder for people to remember - if you have a link similar to www.yourdomain.com/mytopic instead of www.mytopic.yourdomain.com, it is easier for people to remember - and if they remember wrong, they can go to the main page, or just try to go up one level in the hierarchy. Having subdomain-urls is, in my opinion, not good for building the brand.