This forum is no longer active. Please post your questions to our new community site

EC2 Bitnami-Wordpress, URL and DNS

Subscribe to EC2 Bitnami-Wordpress, URL and DNS 3 post(s), 2 voice(s)

 
Avatar dmcvocation 2 post(s)

Hi. I’ve just deployed a EC2 EBS Wordpress AMI. Following the provisioning of an elastic IP, I created a DNS and signed this up with a registry provider.
I also made the following changes so that my blog page loads at the DNS URL:

1) Backed up /opt/bitnami/apache2/htdocs
2) Symlinked /opt/bitnami/apache2/htdocs to /opt/bitnami/apache2/apps/wordpress/htdocs

Now I get to the blog home page with the URL www..org instead of having to type www..org/wordpress

I’m all new to the Bitnami stack, so I’m not too sure if this is the canonical way of accomplishing my goal.
Anyway, with all of this as background info, here is the problem I’m asking help for.

At the blog home page, clicking on any link loads pages with URL tagged with the EC2 public DNS. For example, starting with my home page at www..org, when I click “About”, the URL switches from www..org to /wordpress/?page_id=2

Ideally I would like the URL to show my DNS instead of the EC2 domain. Any way I can accomplish this?

Thanks.

— Dennis

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Wordpress requires to update the database with the new URL. Try the mysql command that you can find at: http://wiki.bitnami.org/Applications/BitNami_Wordpress_Stack#How_to_change_the_default_URL.3f

Also the wordpress stack ships a tool to update the IP in the database if you reboot the machine. If you set your domain name you should remove the following file /opt/bitnami/updateip.

I hope it helps.

 
Avatar dmcvocation 2 post(s)

Hi, Beltran.

Thanks so much! That worked like a charm.

Before I followed your suggestion, I was trying to solve my problem using mod_rewrite,
but without success. While apache was translating the EC2 domain into my DNS domain in
the way I wanted it to, hovering the mouse over the blog links revealed the EC2 URL at
the browser status bar. So odd! Following the instructions in the link you forwarded
resolved all of these issues, minus the extra processing that URL rewrites place on apache.

— Dennis