I have moved a wordpress site from /wordpress/ to / and it has worked except for the header navigation bar.
http://vashonschoolsfoundation.org/thank-you/annual-report/
If you click on of the top links (not one of the dropdown links), it takes you to a /wordpress/ url.
IE: if you click Thank you, it should take you here,
http://vashonschoolsfoundation.org/thank-you/annual-report/
but instead it takes you here:
http://vashonschoolsfoundation.org/wordpress/thank-you/annual-report/
The correct url (without /wordpress) works, but it isn't the one getting linked to.
All the submenu links work fine.
How can I fix this?
Note: when you hover over the top links, they say they will take you to the right links (in the url preview browser feature in most browsers), but they take you to the wrong (/wordpress) one.
I see that only two top navigation links redirects to /wordpress/ ('Thank You' and 'Contribute'). 'About' and 'Contact us' works correctly.
When clicking on 'Contribute' server sends Location header - Location:http://vashonschoolsfoundation.org/wordpress/contribute/give-today/
This header is set somewhere in you code or options that are saved in database. I don't think that the problem in database, because in this case all links will be broken.
Try to disable all plugins, switch to default theme and check the links.
Have you changed the "site address" in your Wordpress general settings?
Did you just move the files one directory up? Because there is more to it than just that. I've used these detailed instructions a few times to move Wordpress installations.
Dump your wordpress DB and then search replace old URL from the dump and then drop your current db and then import the corrected one.
Do you still have an wordpress under /wordpress/ folder?
All you need to do is make two changes in your database table wp_options
All you have to do is change the option_value field to the correct URL for the records with option_name=’siteurl‘ or option_name=’home‘.
Read the instructions in the Codex.
Related
In Wordpress I created a page "home" (https://sitedomain.com/home) but I cannot render it equal as the homepage (I made a page template equal to index.php and implemented the custom query but still not working properly).
I currently have a
echo("<script> window.location.replace('https://sitedomain.com')</script>"); statement in the single page template file allowing me to redirect users to the actual homepage but it is slow. I want to manually change the URL of this page in the database but I cannot find it in the Database.
Also, it is not possible to modify the URL from the dashboard since the minimum url must be https://sitedomain.com/home.
Is it possible? Where to find the single URL of the page in the Database?
You can just define that page as your homepage in the WP dashboard: "Settings > Read > select static page as starting page" (or similar, not sure about the exact English terms)
in the end I simply used JQuery to replace the href attribute with the one that I needed (https://sitedomain.com).
Not ideal solution but it works.
I have a Website of Wordpress In My Website When I click on any URL After complete Loading Content Page Some Codes Automatically Add on Permalink
For Example
http://example.com/wow-amazing/ Correct Link This Link Is Fine
After Complete Page Loading
http://example.com/wow-amazing/#.WfB5iI-Czcs
How Can I Remove #.WfB5iI-Czcs this Automatically Added Code From Permalink
Thanks In Advance
That part with # is generated at front side, so it actually doesn't affect you permalink. So there is no problem if you see that.
And actually it doesn't come from permalink, it is generated by some plugin's javascript. (for example AddThis generates such anchors, if you use AddThis, then the reason is AddThis)
I have a wordpress page where i have Menu Items, content and more.
Now the idea is to have two domains they can go to:
The default one: link.de/page
And a second one at: blog.link.de/page
The plan is, that the second domain has the same contents as the default one. The only thing that would be different is the domain people will would be on.
This is the hard part, i must include the content from the default page here.
Step 1 was, include the Menu from the default one and change the links via Walker.
Now i need ideas how i can display the content from a page which has
the same name as the current.
If you think "why you need multisite, when the content is the same"
The content can be change, when the current page exists on the current blog
Hope you can help me...
You could use a CNAME record for this:
That CNAME could point to the original server. And when you point a CNAME, you also directly have that subdomain.
You should also set your site home and base url to the url of the main website so that if you click on something in the second one it leads you to the main domain. And not to a dead page.
Hope that works.
Source(Shold definitely read):
https://premium.wpmudev.org/forums/topic/how-to-point-domains-to-mapped-wp-multisite-subdomains?utm_expid=3606929-92.rprqzZQVQVO9C0D8ZR2AsQ.0&utm_referrer=https%3A%2F%2Fwww.google.nl%2F
I have a Wordpress blog installed in a subfolder and I would like to replace a part of the url of the post.
Right now it is like this: http://domain.com/wordpress/{permalink-structure}
What I would like to achieve (without moving the site) is: http://domain.com/{permalink-structure}
I tried changing the site url (and followed the instructions provided by WP on how to do this), but if I do this, my front-end stops working ( I am not retrieving the posts etc through the WP-API and I work with AngularJS)
Is there an easy way to automatically modify the (by wordpress generated) url of all future posts by using a plugin or modifying the source code? Or via .htaccess?
Redirecting via htaccess is my preferred option but when I tried this, the wp-api plugin (accessible via domain.com/wordpress/wp-json/* stopped working
Just to be clear: I am not accessing the posts by the generated URLS, I retrieve them via the API and the only thing I want is that the link object in the retrieved post has a different URL.
I don't know. Just try to help. This is my solution redirect what need to redirect.
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^wordpress/wp-json/(.*)$ http://domain.com/wordpress/wp-json/$1 [R=301,NC,L]
RewriteRule ^wordpress/(.*)$ /$1 [R=301,NC,L]
you want to change wordpress domain or URL. you need to perform following steps.
1 you need to modify all url's stored in database. I prefer to use https://interconnectit.com/ tool. It is pretty good and easy.
2 Once you update all database urls then you need to login in wp-admin and just update permalink settings.
you need to check plugins too. Some plugins may get deactivated you need to activate them again.
Hope this will help.
check word press codex:
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
you can display your word press without move your directory from sub folder to root folder and can remove sub-directory from URL.
My Site is Working well with url
www.softsystems.org/site&name
I wanted to make my site URL
www.softsystems.org/sitename
For this I cahnge Wordpress Directory Name site&name to sitename
but the site does not work,
I tried 2,3 times,Updated db Links,
I installed Fresh Wordpress, but no Success after 8-10 hours,
Please Guide me in this Regard so that I can get rid of this problem,
I would try these 2 options :
1 - Go into Settings > Readings, set the Front page to a another page then save. After, put back the Front page to the correct page and save again.
2 - I would do the same thing with the Permalinks. Go into Settings > Permalinks and change it to something else and save. After put it back to what it was and save again.
This is what fixed it for me when I got the same problem.