New domain but still redirected to old!

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

New domain but still redirected to old!

Postby user751139 » Tue Dec 14, 2010 12:29 pm

I hope this makes sense as i've been trying for hours to get this right.

Basically i've installed the the phpbb seo mod on my site (lets call it example.com) and everything is working just as it should!

Now i've baught a new domain (example.org) and decided to use this domain as my main.

I've moved over all my files and from the .com over to my .org root folder and updated the config and imported the sql data as well.

Now here's the problem:

when i visit my .org domain it's working fine.. but every single link is still pointing over to the .com domain! To make things worse I cant even access the ACP because when i hit the login button on the .org site it redirects me to the .com!

I've even tried the:

Code: Select all
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.org/$1 [R=301,L]


but i get the 301 moved Moved Permanently msg.

I hope someone can help me out, is this a .htaccess issue or do i have to modify other files?
Thanks in advance!
user751139
 
Posts: 10
Joined: Sun Dec 13, 2009 5:26 am

Advertisement

Re: New domain but still redirected to old!

Postby HB » Tue Dec 14, 2010 3:21 pm

Did you update the phpBB config table in your database? It sounds like server_name is still set to the "old" domain. If so, update it using phpMyAdmin and purge the cache folder.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1220
Joined: Mon Oct 16, 2006 2:25 am

Re: New domain but still redirected to old!

Postby user751139 » Tue Dec 14, 2010 5:11 pm

Got it! Thanks for your help!! :mrgreen:
user751139
 
Posts: 10
Joined: Sun Dec 13, 2009 5:26 am


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests