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 6948987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:53:43+00:00 2026-05-27T13:53:43+00:00

So I have a .htaccess at the root directory of example.com: RewriteEngine on RewriteBase

  • 0

So I have a .htaccess at the root directory of example.com:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

Now I’m installing wordpress at example.com/blog/, but after uploading wordpress files there, it’s 404 error when I visit http://www.example.com/blog/

My take is I should modify the .htaccess in the root directory of example.com or the request is redirected to /index.php rather than /blog/index.php

So I added this line to the .htaccess in the root directory:

RewriteCond %{REQUEST_URI} !^/blog

And the whole thing looked like:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_URI} !^/blog
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

But it doesn’t work neither. It’s still 404 error when you visit http://www.example.com/blog/ so I couldn’t even install wordpress there.

How should I modify the .htaccess in the root directory to make this work? Thanks a lot!

  • 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-27T13:53:44+00:00Added an answer on May 27, 2026 at 1:53 pm

    Seems it’s not a .htaccess rewrite issue but a permission issue because I have suPHP installed which demands all files to be 644 and all directories to be 755 and all scripts are owned by the user.

    So this question is meanless…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this htaccess code: RewriteEngine on RewriteBase /xm/ RewriteCond %{REQUEST_URI} !^/index.php$ RewriteRule ^([a-z0-9]*)\.php$
i have .htaccess file which includes below code. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond
I have a directory /public_html/myfolder/ and I want my domain www.example.com to point to
I have in my site a Wordpress running in the root directory, ie: mysite.com/
I have a .htaccess file in the root of a website: /var/www/mywebsite/htdocs/.htacess and I
I have this .htaccess file in WordPress. It's located at /public_html/ (web root). I
I have created following rule in the .htaccess file located at the root of
I have the following rule defined in the .htaccess file of my webapplication's root
Say I have a htaccess file shared by dev.server and server.site.com. The first domain
I have wildcard subdomains for example: .example.com goes to example.com/app/ It seems uploadify works

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.