Working on earlycollegecolumbus.com hosted through bluehost.
As soon as I went live, the site logo's image url is missing a trailing slash after the domain name.
Here's what I have tried:
Added a trailing slash in the database "wp_options" table home URL and "normal" URL
Modified wpconfig.php to add
define('WP_SITEURL', 'http://earlycollegecolumbus.com/');
Changed the general settings in WordPress, but it will not allow you to add a trailing slash. (WP Admin > Settings > General)
Updated the site URL in Bluehost settings (My sites > Settings > Site URL)
Because this happened when you went live, the web server is either striking the url. Check the .htaccess or ‘nginx.cong’
Look over the web servers file because iid you find anything like the snippet below.
<VirtualHost *:80>
Redirect permanent /
https://www.example.com
Just add a trailing slash
<VirtualHost *:80>
Redirect permanent /
https://www.example.com/
Related
I have a new website but it has some SSL issue.
Issue is that when i type my website URL without https like only (example.com) in address bar it becomes not secure
and when i type https with it like (https://example.com) my site show secure.
I have installed the SSL certificate with my cPanel "Let Encrypt SSL" option.
And i have update my urls from http to https in my worpress Settings > General.
Help me with this I want to type my url in address bar without https (example.com) like othere website we usually surf on internet and want it to automatically detect that it is a secure website.
I'm assuming you've already acquired an SSL certificate for your site.
What you want to do is redirect HTTP to HTTPS via your .htaccess file. A quick search will tell you how to do that, it is something like:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.example/$1 [R,L]
Another easy solution is to redirect via your Apache configuration. Navigate to /etc/apache2/sites-available/ and edit your site's config file. Add the following lines:
<VirtualHost *:80>
ServerName yourdomain.com
Redirect permanent / https://yourdomain.example/
</VirtualHost>
I am trying to understand regex URL rewrites and redirects.
I need the following:
www.mydomain.com/tag/*/index.html (for example, mydomain.com/tag/winter-holidays/index.html or mydomain.com/tag/summer-holidays/index.html) to redirect to: www.mydomain.com/index.php/tag/WHATEVER/index.html
www.mydomain.com/*/ (for example, www.mydomain.com/four-roots-of-happy-living/, www.mydomain.com/four-roots-of-happy-living (without the ending slash), www.mydomain.com/living/, www.mydomain.com/living (without the ending slash) AND ALSO www.mydomain.com/category/happiness/ and www.mydomain.com/category/happiness (without the ending slash) to redirect to www.mydomain.com/index.php/WHATEVER/ or www.mydomain.com/index.php/WHATEVER/ WHATEVER/.
I have tried so many different combinations in my .htaccess file that my head is spinning now.
In my .htaccess (currently) I had this, but have deactivated it for the meantime until I can get this straight:
Redirect 301 /* /index.php/*
RedirectMatch 301 /*(.*)/? /index.php/$1
Note: My htaccess file was/is in my root directory, my WordPress site is in a wp folder off that, and it did not have a .htaccess file.
Slash missing before WP-content & Some uploaded images are not showing?
For Example:
URL:
www.example.comwp-content/uopload/2017
In this website some images not working
Maybe it's a bit late for you OP, but anyone facing a similar issue and comes across this post, this may be because of a redirection rule in your web server.
I had http redirecting to https and my rule was missing the trailing slash in my new URL, e.g. for Apache:
<VirtualHost *:80>
Redirect permanent / https://www.example.com
...
Fix this by adding the trailing slash:
<VirtualHost *:80>
Redirect permanent / https://www.example.com/
...
if your url completely looking like that : http:="" localhost="" mywebsite="" wp-content="" uploads="" 2020="" 08="" finance.jpg"
you should fix quotes from href.
wrong = style="background-image:url("<?php echo $imageuri['url'] ?>")"
correct = style="background-image:url('<?php echo $imageuri['url'] ?>')"
with " you finishing style quotes
I've been trying to set up a reverse proxy on a main website to a blog site of the url format
example.com/blog -> blog.example.com
example.com/blog is on an Apache instance and in the httpd.conf I have added the following.
SSLProxyEngine on
ProxyPreserveHost Off
ProxyRequests Off
ProxyPassMatch /blog https://blog.example.com
ProxyPassReverse /blog https://blog.example.com
This all works but it keeps 404ing. The good news is it is actually reverse proxying correctly because it grabs the 404 page of the blog.
After looking at the apache access logs I found that it is passing the subpath for whatever reason /blog to blog.example.com so its fetching blog.example.com/blog. When users navigate to /blog, it does 404 naturally. However, my understanding was when setting up ProxyPassReverse is it would make the request at what was specified so in my above case it should be requesting blog.example.com and not passing the /blog at the end.
Here is the snippet from the documentation that confirms the above in how it should work:
For example, suppose the local server has address http://example.com/; then
ProxyPass /mirror/foo/ http://backend.example.com/
ProxyPassReverse /mirror/foo/ http://backend.example.com/
ProxyPassReverseCookieDomain backend.example.com public.example.com
ProxyPassReverseCookiePath / /mirror/foo/
will not only cause a local request for the http://example.com/mirror/foo/bar to be internally converted into a proxy request to http://backend.example.com/bar (the functionality which ProxyPass provides here).
Any ideas why this might be? Worst case I might try to add a redirect or a rewrite so /blog goes to the homepage but I do have my permalinks set up in such a way that the /blog is in the slug of articles.
FYI I am using Apache 2.2.
I'm an idiot. I was using ProxyPassMatch instead of ProxyPass. Ugh.
I have a Wordpress multisite project and the multisite network is configured as subdirectory.
Let's say - domain.com/site1, domain.com/site2 (which are working properly).
The server is also configured for wildcard-subdomain.
Now, if I try with req.domain.com or req1.domain.com/site1 or req2.domain.com/site2 then it always redirect to domain.com.
I checked the requested domain name (say for- req.domain.com) by print from <root dir>/index.php, and up to this /index.php the domain name (req.domain.com) is OK; but it redirected (to domain.com) before theme files start to execute.
Is there any way to use both wildcard-subdomain and multisite (subdirectory) simultaneously?