Rewriting domain URL in address bar
-
Hiya
I have my blog domains correctly mapped, eg:
example.com.au -> example.webhive.com.au
but the URL isn’t rewritten in the address bar. I’m still seeing example.webhive.com.au.
I have permanent redirect set, and the domain’s set as primary.
My .htaccess is:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L] </IfModule> # increase upload file limit php_value upload_max_filesize 2M php_value post_max_size 2M php_value max_execution_time 300 php_value max_input_time 300 # END WordPress php_flag eaccelerator.enable 1 php_flag eaccelerator.optimizer 1My multisite is http://webhive.com.au.
An example is rotarymerimbula.org.au.
I’ve disabled all plugins on the blog.
Thanks!
Jackie
-
Do you have the primary domain check disabled in the DM settings? If not, which URL is the primary domain on the site in question.
Hi Ron
Thanks for replying!
No, primary domain check is not disabled. Primary domain is rotarymerimbula.org.au.
Have put screen shots here – http://webhive.com.au/troubleshooting/
I have this problem across all my blogs. I usually solve it with the ‘Home’ setting but that causes other problems. (It breaks the login and Jetpack settings links.)
It didn’t happen with the first couple of blogs I created. I’ve tried disabling all plugins on the blogs, to no avail. (I haven’t tried disabling all plugins on the main blog though.)
Thanks!
JackieCheck the source of the page on the front end of the site and see if there is a blank line at the top.
Start of source is
<!DOCTYPE html> <!--[if IE 6]> <html id="ie6" lang="en-US"> <![endif]-->(No blank line there)
Start of page div is:<div id="page" class="hfeed"> <header id="branding" role="banner"> <div id="header-content" class="clearfix">Is that what you mean? – the blank lines between the page div and the header?
the blank lines between the page div and the header?
No, a blank line at the beginning could break the redirect if it was being added to the output before the redirect.
I checked http://rotarymerimbula.org.au/ and it doesn’t look like it’s WP
<!-- This website is powered by TYPO3 - inspiring people to share! TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL. TYPO3 is copyright 1998-2012 of Kasper Skaarhoj. Extensions are copyright of their respective owners. Information and contribution at http://typo3.com/ and http://typo3.org/ -->Sorry Ron, I redirected rotarymerimbula.org.au to their old site last night. Should have posted a new test link.
damondavies.com has the same problem.
Still don’t understand – a blank line at the beginning of what? By output, you mean the page source? (Sorry to be a dunce lol. I don’t understand why page contents would affect the address bar unless there’s a directive in the header.)
Jackie
By output, you mean the page source?
Yes.
You have a redirect somewhere that is redirecting the domain to the unmapped domain. According to the settings you have described the domain mapping plugin should be redirecting to the mapped domain (resulting in an endless redirect loop).
Since you do not have the redirect loop can you confirm that you have
Disable primary domain check.is not checked
damondavies.comis set as the primary domainFound it. At last! Cloned my multisite so I could pull it apart and found it was a conflict between the WordPress MU Domain Mapping plugin and the Multisite Plugin Manager plugin.
Thanks for your help Ron.
Jackie
Did you disable the MPM plugin or did you have to do something else as I was planning on using both on a particular project?
All the best.
Yes I ditched the Multisite Plugin Manager.
I’ve created a template blog and am using blog copier, so I can live without MPM.
The topic ‘Rewriting domain URL in address bar’ is closed to new replies.