stevetsai046
Forum Replies Created
-
Hi Jeremy,
I’m sending a good news, finally I find the way to redirect IP address to my domain name.
I added below syntax to htaccess.conf file (@/opt/bitnami/apps/wordpress/conf)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^52\.38\.102\.113
RewriteRule (.*) https://stevehctsai.net$1 [R=301,L]
Bitnami use this file (htaccess.confg) to replace .htaccess fileThanks for your helps
Now I’ll try to use cache plugin.The original setting are
define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);And I change to follow domain name, but it still show IP address when I use it to access to my website
define(‘WP_SITEURL’, ‘https://stevehctsai.net’);
define(‘WP_HOME’, ‘https://stevehctsai.net’);BTW, when I search redirection way on Bitnami support website found a file call bitnami.config, but after I change the file can’t access my website anymore till I change it back, I think this file is the one I should change, but I don’t know the right code.
https://wiki.bitnami.com/Components/ApacheHow to access to my application from only one domain?
The default Bitnami server configuration allows you to access to the server from different methods: using the Amazon EC2 or Azure domain name (f.e. ec2-xx-yy-zz.amazonaws.com or xxxx.cloudapp.net), using the IP address directly or using the Bitnami Cloud Hosting domain (f.e. xxxx.bitnamiapp.com).
If you want to redirect all these domains to your own domain, you can configure Apache server to redirect all these requests to the same domain.
You can add the following configuration into the /opt/bitnami/apache2/conf/bitnami/bitnami.conf file. Note that you have to replace “example.com” with your own domain.
<VirtualHost _default_:80>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^example.com$
RewriteCond %{HTTP_HOST} !^(localhost|127.0.0.1)
RewriteRule ^(.*)$ https://example.com$1 [R=permanent,L]
…<VirtualHost _default_:443>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^example.com$
RewriteCond %{HTTP_HOST} !^(localhost|127.0.0.1)
RewriteRule ^(.*)$ https://example.com$1 [R=permanent,L]
…
Then restart the Apache server.My wordpress is use Bitnami’s AWS EC2, the only .htaccess file I can found is under /home/bitnami/apps/wordpress/htdocs/
but after add below code, it’s not workingOptions +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^52\.38\.102\.113
RewriteRule (.*) https://www.stevehctsai.net/$1 [R=301,L]I have search for the redirect setting of htaccess and found this one
https://webmasters.stackexchange.com/questions/48793/how-to-redirect-ip-to-domainAnd add the code to my .htaccess (wordpress/htdocs/.htaccess) as follow, but it didn’t make any change, when I use IP address to access my website it didn’t redirect to my domain.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^52\.38\.102\.113
RewriteRule (.*) https://www.stevehctsai.net/$1 [R=301,L](Below are the original code in my .htaccess)
# 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
Thanks for your help.
I’m using AWS’s Route 53 as my DNS service, how to set my IP address to redirect to my domain?
My setting now are like following,
1. A record: stevehctsai.net= IP Address
2. CNAME: https://www.stevehctsai.net=stevehctsai.net
3. CNAME: mobile.stevehctsai.net= apps1.webcrumbz.net (I’m using a web app plugin)
4. A record: store.stevehctsai.net= IP address
5. NS(Name Server): stevehctsai.net= NS domain (by AWS)
6. SOA(Start of authority): stevehctsai.net= (by AWS)
and there are some other CNAME setting are for website verify by Google, Bing etc.My URL is https://www.stevehctsai.net and https://store.stevehctsai.net
(The issue both happen on these two sites)I think the issues may cause by “WP Fastest Cache”, after I remove this plug-in the issue never happen again, but my website loading is become slow.
BTW, I have using “ALL-in-One WP Migration” to backup my site.
I’m fixed this issue now, but the website loading speed are really slow now, do you have any suggestion for cache plugin setting?
Forum: Plugins
In reply to: [Bitcoin Payments for WooCommerce] Only support Electrum wallet?No, I still use Electrum for this plugin.