Greetings, I have a unique problem I haven’t seen addressed anywhere, and I would appreciate any guidance you can give me.
I designed a website with WordPress 3.4.2. I created the “testing” site at www.stbedesmenlopark.com
When I went live with the website, we want the main URL to be www.stbedesmenlopark.org So I pointed the .com site to the .org URL.
The WordPress dashboard is still residing at the .com URL, and when I am editing a “page” and I click “preview page” I get an error message that says “you do not have permission to view drafts”. The page is published, not
a draft, and I am the main administrator with all privileges. This happened right after I re-directed the URL.
Hi Deadmix - thanks for the help.
I put this information on my .htaccess file, and it did re-route the .com, but now I can’t access my WordPress Dashboard, at either .com/wp-admin.php or at .org/wp-admin.php
My current .htaccess file has this info on it - do I keep any of this code, or replace it with only the code you have above?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Again - thanks for your help - France - nice, I’m from the US - Michigan - lots of snow now!
If you don’t plan on ever using the .com in the live version I would run a change to the URL in the database. This is the same process as when you migrate from a completely different URL and is covered in the wordpress codex. If you rewrite the URL inside the database you won’t have to worry about re-writes outside of Wordpress, even if it is occurring at the server level. Internally Wordpress knows what to refer to so you won’t get errors. Simple and clean.