Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ten1010

    (@ten1010)

    I was editing and old useless .htaccess file.

    for secruity reasons Bitnami has moved the configuration of .htaccess file to the main application bitnami configuration files.

    Some plugins, during their installation, create a .htaccess file in either the /opt/bitnami/apps/APPNAME/htdocs/ or in the
    /opt/bitnami/apps/APPNAME/htdocs//plugins directory that cannot be read by Apache. For that reason, we recommend moving the
    content of that file to the /opt/bitnami/apps/APPNAME/conf/htaccess.conf file.

    https://docs.bitnami.com/aws/apps/wordpress/administration/use-htaccess/

    Thread Starter ten1010

    (@ten1010)


    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domainname2.com [NC]
    RewriteRule ^(.*)$ https://mywebsite.com/domainname2-for-sale/$1 [L,R=301]

    RewriteEngine On
    RewriteRule ^/news1/$ /news2/ [R]

    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    -domainname2.com DNS A Record is pointing to mywebsite.com IP address.
    -permalinks are set to /%postname%/

    Thread Starter ten1010

    (@ten1010)

    I put a RewriteEngine On and RewriteRule before the WordPress rewrites and still nothing. I stopped and started the bitnami stack and still nothing. Thanks.

    Thread Starter ten1010

    (@ten1010)

    I have tried clearing browser cache and I don’t have a cache plugin activated. Or do you mean to disable the cache in the server. Thanks.

    Thread Starter ten1010

    (@ten1010)

    I have tried using WordPress Permalink Settings to clean up the page URL, but I believe the Permalink Settings only for cleaning up the WordPress database generated URLs.

Viewing 5 replies - 1 through 5 (of 5 total)