I'm trying to display a wordpress site to a customer using ngrok.
I tried using different comments.
first of: ngrok.exe http 80 this works i see the folder where all my sites are in.
Ngrok
website 1
website 2
website 3
but when i target my wordpress website the domain changes to localhost/website1
making it impossible for the customer to see his website.
i tried setting the root of my wordpress to my custom ngrok domain. this makes it kinda work, except for the images and assets that cant seem to find their location anymore.
also i tried installing the wordpress plugin (ODT relative urls). this also broke more then it fixed.
I tried using diffrend ngrok comments, they worked but didn't change a thing.
If it is any help, i use xampp to make my files to a localhost server.
in short -
ngrok display localhost/WEBSITE instead of the desired NGROK_LINK/WEBSITE
Problem was wordpress home url was set to localhost, when loading the new url it redirected back to localhost from the database wordpress home property.
Related
everyone I recently migrated my website from one host to another host (ionos to plesk vps), using all one migration plugin website migrated successfully but the website homepage URL shows "too many redirects"` the problem is the only homepage url is not working specifically but all my website pages, url, posts, and WordPress dashboard loading correctly.
I am using Cloudflare for dns & ssl, elementor, woocommerce, etc on my website, When I shift my website back to the old IP (host), the website works but in the new host website homepage url is not working.
the website only works when I disable the Cloudflare proxy so that means the problem is coming from the Cloudflare
fix I try:
Changing the site url
Changing Cloudflare ssl mode to full, flexible, and full strict
creating a default .htaccess file
I try to open the website in incognito mode and another device
disabling the plugins etc (but nothing working for me)
If anyone can help me with this it would be greatly appreciated
I moved wordpress website with https address to a localhost on LAMP server using All-in-one migrate plugin. Everything moved well except paths to media files (pictures).
Links to pictures in upload folder are broken. And nothing wrong with them except that they have https instead of http.
Console errors pic
I tried find/replace in wp_posts table, but it doesnt find anything. Tried to use plugin, that seems to do the same - doesnt help.
My .htaccess file is the default one from WP codex.
Weird, that I've done same process of migrating from https to localhost with another wordpress website and everything was fine.
The only difference between them, is that website with problem is using woocommerce plugin. And images are actualy products images. Maybe this will help.
UPDATE: Looks like problem is with all uploaded media files. I just've uploaded new file, and it's not showing neither. Some problems with apache configuration?
UPDATE2: Found out that this is 301 redirect problem. But where does it comes from? What to do to cancel those redirects? Do I need to edit .htaccess?
Screenshot of network tab for correspong images. Gray ones are http versions and red ones - are redirected to https
There are a few things, that I would recommend you to check.
Check your settings in the database _options table in the fields siteurl and home. You should have there http://domain-name
Also you need to check your wp-config.php. There might be rules added regarding siteurl and home using incorrect protocol.
There might be some plugins installed, which can trigger this https redirect, such as Really Simple SSL, or cache plugins, which also have settings regarding https.
And finally, check your theme code, if it is a custom theme, it also can be configured to use https in some cases.
I am setting up a WordPress site hosted on a home server. On the WordPress site, I have managed to upload a purchased template and import sample content. This means that the website should display exactly like the demo. From WordPress, when I view the website from the local machine (the home server), It displays all of the content that I uploaded. But when I connect to the website from any client, the backgrounds displays, but not the images. I used a plugin called cherryframework4.
http://74.208.12.48/index.php that is the link to the site... in looking at the console logs, I can see that most files filed to load. but all the files exist are in the directories.
it is also worth mentioning that i used cherrframework4 as a plugin to install the site
Happens regularly when moving from localhost to live site or from temporary URL to live. It's looking for images on the initial build platform (e.g. your machine or temporary URL) rather than from the live server:
It's looking for: localhost:8888/path-to-image/image.jpg
Should be looking for: domainname.com/path-to-image/image.jpg
Try using the search and replace plugin to search for instances of localhost:8888 (or whatever your machine is called) and replace it with the live domain name.
Be careful to check the URL in the code to extract and change only the part of the string that needs it.
Settings>general I changed the WordPress address and the site URL address to the ip address of my server. What has happening was that, because the url was set to http://localhost, the client machine was looking for the images in its own drive.
I have a wordpress site on an IIS at localhost. To demo the site, I used ngrok to make the site available.
When viewing the site on localhost, everything looks fine. However, when I view the site remotely through the ngrok tunnel, the content appears, but all style & theme elements are lost.
I am not sure what code, configuration or documentation would be helpful for solving this problem.
Any idea why this may be occurring?
This happens because the links in wordpress are usually absolute, you need to force Wordpress to use relative URLs with one of those plugins:
https://github.com/optimizamx/odt-relative-urls
http://wordpress.org/plugins/relative-url/
Our company website uses Wordpress and I am looking to set up a second installation in a subdirectory of the main site. The second site has been set up and seems to work fine externally, but inside our network(which has the same domain as the website) the secondary site does not load. For example;
www.systechinfo.com - loads fine
www.systechinfo.com/wp-admin - loads fine
www.systechinfo.com/emc - doesn't load internally, but loads
fine externally
We are using the www redirect hack internally to get the main site to load, but I am not sure if this is a DNS issue or a redirect issue on the HTACCESS. Please advise. Thank you for your time.
In the new subdirectory has to upload the files and install wordpress. The other option is to create multisite. http://codex.wordpress.org/Create_A_Network
Your site is already running.