eileenludwig
Member
Posted 1 year ago #
Initially created in its own directory mysite.com/blog and url pointed to mysite.com/blog
now using
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Did the copy of index.php to root and .htaccess to root mysite.com
Made changes at the General settings with uri pointing to mysite.com/blog
URL pointing to mysite.com
Problem
url mysite.com/blog says not found and does not resolve the path to mysite.com
the post do resolve
I think you've for that the wrong way around. The site url should be mysite.com and the blog url should be mysite.com/blog.
eileenludwig
Member
Posted 1 year ago #
esmi,
That is what I said
Currently WordPress Settings General
The site url is mysite.com
the blog uri (in wordpress General Settings) is mysite.com/blog
BUT when initially/originally set up Wordpres in the directory BLOG - I used the url mysite.com/blog and uri mysite.com/blog in WordPress
AND I posted links back to mysite.com/blog at other places - THEREFORE I need to be able to have mysite.com/blog resolve to mysite.com if someone types in mysite.com/blog - Is that possible? or am I out of luck on anywhere I posted url mysite.com/blog
Eileen
not sure if /blog can resolve to root
reason being, since WP is in its own directory /blog, but running from root, your admin stuff still runs out of /blog
so domain.com/blog/wp-admin is still your admin stuff
I woud thing redirecting /blog to root would jack up your admin
Sorry - I typed it the wrong way around. It should have been:
site url: mysite.com/blog
blog url: mysite.com
eileenludwig
Member
Posted 1 year ago #
esmi
You are saying to point the uri blog url to the root and the site(root) to the directory - that is the opposite of what is in the move document http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Are you sure?
I had my blog in a separate directory to start with. That document has you moving your blog into a separate directory I just need to get the
root
root/blog
This is root/blog address, right? In the box for WordPress address (URL): change the address to the new location of your main WordPress core files. Example: http://example.com/wordpress
This is root address, right? In the box for Blog address (URL): change the address to the root directory's URL. Example: http://example.com
I've just edited that Codex page to use the currently correct labels as I think the old nomenclature was creating a lot of confusion - not least of all for me.
So it it should be:
WordPress address (URL): mysite.com/blog
Site address (URL): mysite.com
I doublechecked it against a live site where I've actually done this in the same manner you have - with WP in it's own directory from the start.
Does that help clarify things?
eileenludwig: you haven't mentioned this, so just checking - did you do the update Permalinks step?
eileenludwig
Member
Posted 1 year ago #
yes I have that set to %postname% and it was set like that prior to this
But have you actually hit the Save Changes button again? If you don't do that the database won't update your page/post links to the new URL.
eileenludwig
Member
Posted 1 year ago #
No need to yell. It's an easy step to miss.
Just a thought - do you also have a page called "Blog"? - that could be causing a conflict. If you do, try renaming it.
eileenludwig
Member
Posted 1 year ago #
sorry did not mean it as yelling - I apologize - I did it a lot because I thought it might have something to do with the paths
No page called blog