I have a forum - domain.com I want to change every single URL(domain.com/index, domain.com/newthread, etc.) to website.com How do I do this?
Can you explain more please ? Are you trying to re-direct to a different domain ? Chances are there is a htaccess hack.
I still dont understand what you want to do. Are you throwing away the old domain? Are you installing the script and the database on the new domain?
Let me find it. RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ RewriteRule ^(.*)$ http://www.newdomain.com [R=301,L] All that should go in .htaccess on an apache server. Domain.com = old domain New domain = new domain
Ok I did that and as I expected, it only redirects. Can anyone actually help me do what I'm asking? I don't want a simple redirection, I want to change every URL in the site from "domain.com" to "website.com". More clarification: I don't just want website.com to go to domain.com when I type website.com into my address bar. I want every single URL on the site(forum) to switch from domain.com to website.com Even More Clarification: http://www.domain.com/forumdisplay.php?f=1 >> http://www.website.com/forumdisplay.php?f=1 http://www.domain.com/member.php?u=1 >> http://www.website.com/member.php?u=1
Al right. You want to abandon domain.com and start to use website.com instead. In short, what you have to do is to install the forum script on the new domain, then let the forum call the database from the old domain.
Then you have to export your database and then import it to the new server. Try to search google for "move site" "move forum" "move database" or something like that.
i think you mean that some forum posts contain urls to other posts in the same forum. if so, an sql query may make those changes for you.
I'm not sure but isn't there option in the admin panel to change you url? lol Like even wordpress has this in the admin section. Only thing is if you do a typo or something then your screwed. and you'll have to edit the URL table DB in mysql with phpmyadmin (if your lucky)