redirect

Discussion in 'Site & Server Administration' started by highlow, Oct 8, 2015.

  1. #1
    I'm not sure where to post this and what should be the title. I have a mybb forum and i created menus that will direct to my wordpress so it will look like they are connected. I tried to use this
    RewriteEngine on
    RewriteCond %{HTTP_HOST} mysite\.com [NC]
    RewriteCond %{REQUEST_URI} ^/$
    Rewriterule ^(.*)$ http://mysecondsite.com/ [L,R=301]

    because i want my wordpress site to become the main page. Everytime they will type my primary domain, they will be directed to my wordpress site.. The menu looks something like this

    /Forum( primary domain)/ /Main menu(primarydomain/wordpress/)/ / blogs/ /articles/

    My main site before was the forum but i want now the wordpress become the primary site. When i type my domain it goes to my wordpress(primarydomain/wordpress/) but when i want to go back to the forum, i click the forum menu but of course it wont go there because the primary domain is directed to wordpress link(primarydomain/wordpress/). What should i do? thank you
     
    highlow, Oct 8, 2015 IP
  2. Roger S

    Roger S Active Member

    Messages:
    46
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    58
    #2
    Hello,

    I believe the WordPress in-build settings of defining site and HomeURL might help.

    Please refer to the link
    https://codex.wordpress.org/Changing_The_Site_URL
    https://codex.wordpress.org/Moving_WordPress

    I believe you will have to change the Site URL to domain name and leave the homeurl as domain.com/wordpress.

    WordPress can be pretty useful at times. :)
     
    Roger S, Dec 27, 2015 IP