Redirect from different port to subdomain - htaccess

by George Alvis   Last Updated July 11, 2019 19:08 PM - source

I created a Digital Ocean instance to install wordpress website 5 days ago. I already have my own domain, and created DNS Subdomain the server runs both nginx and apache so my apache port is 8082. Below is my actual wordpress URL looks like.

Something which i have tried is below.

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com:8082/wordpress\
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ([a-z0-9-]+)/? http://$ [R=301,NC,L]


Now my expected result is from\ 

Tags : htaccess apache

Related Questions

Redirect old domain with query paramaters

Updated July 14, 2017 13:08 PM

Multisite Wordpress Redirect

Updated July 15, 2019 03:08 AM

Cross-domain fonts don't work on a new domain

Updated July 30, 2019 06:08 AM