Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4617214
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:05:34+00:00 2026-05-22T02:05:34+00:00

I have my wordpress in a sub-folder on my domain with a .htacess file

  • 0

I have my wordpress in a sub-folder on my domain with a .htacess file on the root which does all the redirecting.

i want to do a redirect, the site IP to WWW. which works for the main site on the root but not for the sub-folder which is WordPress.

iv got a feeling wordpress is overwriting this some where?

this is what iv used in root .htaccess

RewriteCond %{HTTP_HOST} ^IP.IP.IP.IP [NC] 
RewriteRule ^(.*)$ http://www.NAME.com/$1 [R=301,L] 

but this does not work for the wordpress sub-folder
iv even tried to copy this into the .htaccess file in the WP root folder but still not work

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:05:35+00:00Added an answer on May 22, 2026 at 2:05 am

    It is because in your WordPress wp-admin panel there is a setting:

    Settings -> General -> WordPress address (URL)
    

    and

    Settings -> General -> Blog address (URL)
    

    Make sure to update them to http://www.domain.com/subfolder then it will start working.

    UPDATE (Based on your comments)

    Use following .htaccess inside WP install folder ‘/blog’

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteBase /blog/
    
    RewriteRule ^/?$ /blog/index.php [L]
    
    RewriteCond %{HTTP_HOST} ^IP\.IP\.IP\.IP$
    RewriteRule . http://www.NAME.com%{REQUEST_URI} [R=301,L]
    
    RewriteRule ^index\.php$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    
    # END WordPress
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment, I have a wordpress-based site at http://sub.mydomain.com , running for 2
i have an wordpress site and it have menus over there. what i want
I have a WordPress site which have 4 pages with one page is a
I have a Wordpress site (installed in root) and a Simple Machines Forum (in
In my website root I have the following to redirect to non www domain
I have a problem in my Wordpress installation. The root folder of my server
I have following navigation structure, which i want to implement in wordpress: (Home /
I am running WordPress 3.3.2 with multisite in sub-domain mode. I want to add
I have a custom PHP/MySQL e-commerce site at domain.com. I have multiple Wordpress blogs
I have a wordpress site running multistage on sub directories. when changing the permalink

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.