Migrated site now some pages are redirecting to homepage
#1
Posted 01 August 2012 - 05:12 AM
Have just transferred a site over to a live domain. I did the following:
Exported old db,
Created a new db on new server
Transferred files and folders to new domain
Changed db details in config.php
Imported db to new db
The site is up and all looks fine but some (at least half) of my pages are just redirecting to the homepage.
I'm scratching my head here, do any of you have any ideas where this may be coming from?
Thanks.
PS Just to add that the old site was on a subfolder ie: .com/folder, now I'm at the root level
Not sure if this makes a difference
#2
Posted 01 August 2012 - 05:22 AM
#3
Posted 01 August 2012 - 05:33 AM
If it is there you could try and set
RewriteBase /(look it up in .htaccess file).
#4
Posted 01 August 2012 - 06:08 AM
Yes it was previously in a subfolder of a different domain and now it is at root level of the new domain. Pretty sure I don't have any absolute urls but will check again.
Some pages eg: /news are displaying fine while others eg: /about are showing the homepage (I should point out that the address in the address bar correctly displays /about).
I have my .htaccess file in the root and for rewritebase I see:
# RewriteBase /
# RewriteBase /pw/
# RewriteBase /~user/
Does that look ok? Thanks again
#5
Posted 01 August 2012 - 07:21 AM
If I rename the url of the page to something else, I can load the page fine so "abouts" will work fine but then when I rename back to "about", it will just show the homepage again.
Hmmm, it does sound like anything with that name gets redirected but can't see where this is coming from!
#8
Posted 01 August 2012 - 08:43 AM
If that doesn't help then try deleting everything in the site/cache folder too.
#10
Posted 01 August 2012 - 02:14 PM
Another thing to check is if you have any modules installed that might get involved with redirects, like any of these: http://modules.proce...-accessibility/ ... I don't think any should cause problems, but it would be good to know if there were any other factors at play, just in case.
#11
Posted 02 August 2012 - 03:07 AM
The only modules I have on this install are
EmailObfuscator
HelloWorld
ManageFiles
Can't think why only some pages are like this and not others?
Could it be a database corruption?
#12
Posted 02 August 2012 - 11:13 AM
#13
Posted 09 August 2012 - 09:31 AM
Doesn't sound like DB corruption, but there's no way to answer that definitively. You might try disabling those 3 modules just in case, but it seems not that likely that any of them would be interfering here. Can you PM me a link to this site so that I can try to access the URL and see what happens? I'll monitor the HTTP headers to get a little more detail about what could be happening. If you have an FTP login, this would also be helpful to get a look behind the scenes, but that's up to you.
Sorry Ryan I didn't see this reply until now! As is so often the way I ended up having to move quickly onto a new project, so will have to check back the other one as once I'm off something for a few days, I completely lose the plot as to what was wrong in the first place!
I'll PM you as soon as I figure it out, thanks!
Also tagged with one or more of these keywords: migrate, homepage redirect
Community Support →
General Support →
Error: Unable to Generate Hash when trying to login into AdminStarted by sam, 11 Feb 2013 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













