I have a wordpress subdomain on my site: https://cdn.example.com, however I am proxying this site to be displayed on my root domain for SEO purposes. Whenever I navigate to https://example.com/blog I am shown content from the CDN subdomain. However, I updated the wordpress site URL to be https://example.com/blog so that the hyperlinks are directed to the blog subpath. This works fine, but breaks the functionality for updating posts. It is attempting to send the update requests to the wp API …
I have a subdomain: https://blog.example.com/ I forcibly redirects to subdirectory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. Now the website and admin works fine except a small issue like when I tried to click save button on settings page (eg: Setting > Writing ) the site redirects to main domain: https://www.example.com/wp-admin/options-writing.php?settings-updated=true /blog is missing in the URL and end up in to main website 404 page. My .htaccess file looks like : # BEGIN WordPress <IfModule mod_rewrite.c> …
My understanding is that site_url() returns the location where the WordPress core files are. If my blog is hosted at http://example.com/blog then site_url() returns http://example.com/blog But then how does home_url() differ? For me, home_url() returns the same thing: http://example.com/blog If that's correct, then can I get WordPress to return http://example.com/ ?
I have activated SSL to my site On my wordpress multisite, I am getting 404 errors when I am entering a correct url for example http://site.org/wp-admin it automatically redirecting and giving https://site.org/wp-adminwp-admin Is there any code that i need to add or remove in the .htaccess code to get this fixed?
I changed the site url to example.com/blog but the wordress url is blog.example.com, still css, images and fonts are loading from blog.example.com, is there any way to force wordpress to load files from site url? P.S: example.com/blog is loading blog.example.com through nginx proxy, so I don't want to use .htaccess rewrite url for this purpose. (because it make a redirect loop)
I have a WordPress site hosted on GoDaddy, it's a Windows server, (i have the web.config set up). and .htaccess correctly configured. The site was working on example.com/wordpress , as it was a development test. I moved the site to example.com . I changed the site url and wordpress URL to example.com on the database through PhpMyAdmin, and updated the permalink structure. I also updated all the wp_post 'content' field to change the URL's. Issue When I try to Log …
I have a Wordpress site with sensitive private data and I email the link of the whole page to a client via email etc. How can I expire the link after 1 Session, So if a client opened the link to visit the site and closed the page that link wont work anymore and the Wordpress is not accessible, saying the session has expired Please ask for another session. How can I do that?
I installed MultiSite with the URL set as http://example.com, but now I want to force all requests to go over HTTPS, so I'm trying to change the URL to be https://example.com. I've gone through the database and updated all the siteurl and home values to have https, but the site still loads over HTTP, instead of being redirected to HTTPS. I know that I could setup some htaccess rules, but that's prone to errors. In regular installations WordPress will automatically …
I am using Wordpress, I have some URL issue. My current URL is IP address on server: http://www.192.10.1.22/states/?q=ohio I want URL: http://www.192.10.1.22/states/ohio I used following code in functions.php file and it's working in my local but when I upload in Cpanel then it's now working given me an error page not found. function custom_rewrite_rule() { add_rewrite_rule( 'states/([^/]*)/?', 'index.php/states/?q=$1', 'top' ); } add_action('init', 'custom_rewrite_rule', 10, 0); I also update permalink and apache mode_rewrite is also on. So how could I solve …
I have two domains uat1.example.com and uat2.example.com pointing to same wordpress installation. I want to change the home_url and site_url for all links in the website to uat2.example.com, but it should not redirect to uat2.example.com if request comes on uat1.example.com, So suppose someone visits my website. uat1.example.com, it should load it. but all links on the web page then should point to uat2.example.com, So User land on a page using uat1.example.com and click on any link it will send me …
I have created a website in wordpress, which is currently running as sub domain of a company. This website contains large number of pdf documents, which are belongs to different categories. The pdf's are placed in a page called downloads, which is created using elementor plugin. I have included a button to download every pdf. The link of button which is like http://domain_name/subdomain/wp-content/uploads/2019/01/pdf_name.pdf. I want to purchase a domain for my site. And How to change the link address to …
last year I developed a website for my school, a collection of school proyects. This year they asked me to create another section of the webpage with this yeats proyects, but they want a differernt theme, so I activated Wordpress MultiSite. The primary site of the network is last years page, but i want to change its domain from www.webpage.com to www.webpage.com/2021 in order to create new site for 2022 and a new landing page from where I can visit …
I have a pdf that embedded in a WordPress post. I want to create a random dynamic url for that post, for example: https://example.com/aj3nfjskke383fn Above link should be seen once, it has expiration and we can create another random dynamic url. Moreover, it is not a redirection. Can above requirement be achieved using wordpress? Thank you in advance.
I'm trying to change siteurl and home in the database, but whenever I try to change after 5 seconds they automatically change back to the previous url. Is it related to the server?
my current structure is like this: I have /Homepage/Insurance Category which is page that contain links to all sub pages (which are types of insurance products). for example: /Homepage/Insurance/Car-Insurance. I have /Homepage/Reviews/Insurance which is contain pages of specfici insurance companies and review them /Homepage/Reviews/Insurance. under that, i have pages for each insurance company that review their specific products. for example for insurance company that called AAA it will look like: /Homepage/Reviews/Insurance/AAA/AAA-Car-Insurance what is the problem? My insurance company product pages …
Use Case: I am setting up wordpress for one of my clients. The wordpress is setup at a domain like http://cms.domainA.com. This domain is on VPN which can only be accessed by using VPN and few additional software. To make the wordpress accessible from the main website there are proxies are created such that https://cms.domainB.com pointing to http://cms.domainA.com. https://cms.domainB.com is publicily accessible. What I want here is wordpress to load normally with all wp-admin, login functionality, post creation etc working …
I'm calling a server-side function written in PHP via wp-ajax. The server-side function eventually redirects to another page for an authentication step, and then redirects back to the initially shown page. For this to work in a generic way, I need to pass the URL from which the AJAX request was fired onto the server-side function. How can I actually do this? When I try for example this, I get the link to wp-admin/admin-ajax.php... I know that I could in …
my company is working with different restaurants to digitize their menus so that people dont touch the menu cards in this Covid 19 pandemic, so every table in a restaurant will have a unique qr placed on it, when a customer scans it the menu will open and he can order it from there, the issue i am facing is how to set all those unique urls linked with the table number, and how to show the table number on …
So I've had this shortcode [site_url] working fine until a few days ago, now as I'm trying to use it again and it shows me a https// instead of https://. I've tried using this function: //Website URL shortcode [site_url] add_action( 'init', function() { add_shortcode( 'site_url', function( $atts = null, $content = null ) { return site_url(); } ); } ); And I've also tried this one: function create_site_url() { return home_url(); } add_shortcode('site_url', 'create_site_url'); I've also tried to check my …
thanks in advance for any advice! My client has a live site currently hosted on GoDaddy. I am developing a redesigned site for him on Local. I don't like working on GoDaddy and have advised him to move the new site to a new webhost when it's time to take the new site live. I have set up a staging site on the new webhost so we can both easily make revisions to it. The new site is an entirely …