jrp91384 Posted April 30, 2009 Share Posted April 30, 2009 I hope someone can help me with this. I have searched and tried everything I can think of but have had no success. This is the situation: I move my install of Wordpress from a subdomain to the main root site directory “mydomain.com”. I am using wordpress as a CMS for this site that also includes a blog page. Everything is working fine except my navigational link to the blog page. When I click on the link about it goes to "w w w.mydomain.com/about" This works the same for the other pages like home, contact, and FAQ’s except for the page labeled blog. When I hover over the link to the blog page it shows the correct path at the bottom of the browser. Once I click it the path at the bottom switches to the subdomains address “blog.mydomain.com/blog” (it’s being re-directed to the subdomain). The blog.mydomain.com/blog page is then rendered. The weird thing is the path in the address bar is mydomain.com/blog and not the path to the page that is actually being seen. I don’t want any part of the site to use the subdomain anymore. I need to delete the subdomain and only use the root directory for the entire site. I’m also using permalinks. If I use the default selection, the blog link seems to go to the blog file on mydomain.com/blog rather than the subdomain as intended. But I need to use pretty permalinks showing the pages name and when set to do that the blog link malfunctions. Things I have tried: I deleted the .htaccess file info and had WP re-generate it by re-saving the permalink info. Prior to doing this I set permissions to 666 and also tried 777 on the .htaccess file. I have run a “find and replace search” on all directory files looking for traces of the subdomain name and found nothing. I did a search in the database and also found no traces of the subdomain. Every thing was switched to the root directories domain name “mydomain.com” Please, does anyone know how the link to my blog page is directing me to and loading the subdomain file and still showing the correct file path to the root directory in the browsers address bar? Thank you!!!!!!!! Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/ Share on other sites More sharing options...
Ken2k7 Posted April 30, 2009 Share Posted April 30, 2009 Did you change Wordpress's URL and the blog URL in the Admin panel? It should be in Settings -> General. Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/#findComment-822412 Share on other sites More sharing options...
jrp91384 Posted April 30, 2009 Author Share Posted April 30, 2009 Yes, I did change those settings to the new URL Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/#findComment-822444 Share on other sites More sharing options...
Ken2k7 Posted April 30, 2009 Share Posted April 30, 2009 Try deleting the Wordpress cache directory and then regenerate the .htaccess file. Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/#findComment-822814 Share on other sites More sharing options...
jrp91384 Posted April 30, 2009 Author Share Posted April 30, 2009 Well I deleted the wp cache directory and regenerated the .htaccess file but had no luck. I have cleared everything out of the subdomain and put an index.htm file with a paragraph saying "this file is located in the subdomain". When browsing to ht tp://oldskillbuilders.com/blog it renders this subdomain index.htm file but shows ht tp://oldskillbuilders.com/blog in the address bar. Does this make any sense? Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/#findComment-822940 Share on other sites More sharing options...
Ken2k7 Posted April 30, 2009 Share Posted April 30, 2009 Well if http://oldskillbuilders.com/blog has a header that forwards to http://blog.oldskillbuilders.com, then yes. Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/#findComment-822943 Share on other sites More sharing options...
jrp91384 Posted April 30, 2009 Author Share Posted April 30, 2009 Sorry to sound like an idiot but how would one go about checking if the header is forwarding? I have setup a redirect of blog.oldskillbuilders.com to oldskillbuilders.com. yet still have the index.htm file rendering that is located on the subdomain. By the way, thank you for your help! It’s much appreciated. Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/#findComment-822964 Share on other sites More sharing options...
jrp91384 Posted April 30, 2009 Author Share Posted April 30, 2009 Problem Solved: I deleted the subdomain and re-saved permalinks. Go figure? Thank you again for all the help!!! Link to comment https://forums.phpfreaks.com/topic/156212-link-redirected-in-navigation/#findComment-823078 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.