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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:08:29+00:00 2026-05-12T22:08:29+00:00

I need to do a url-rewriting job now. I don’t know whether I should

  • 0

I need to do a url-rewriting job now.

I don’t know whether I should put the code into a .htaccess or httpd.conf?

EDIT

What’s the effecting range of .htaccess?Will it affect all requests or only requests to the specific directory it’s located?

  • 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-12T22:08:29+00:00Added an answer on May 12, 2026 at 10:08 pm

    If you wont have to change your rules very often, you should put them in the httpd.conf and turn off overriding in the top directory your rules apply to

    AllowOverride None
    

    With no overriding, your apache will not scan every directory for .htaccess files making less of an overhead for each request.

    Whenever you do have to change your rules, you will have to restart your apache server if you put it in your httpd.conf as opposed to them being instantly detected in .htaccess files because it reads them all on every request.

    You can easily do this using a graceful restart with the apachectl tool to avoid cutting off any current requests being served.

    apachectl graceful
    

    If you aren’t going to turn override off, you might as well just use .htaccess only.

    Edit in response to your edit:

    Say you have a request for http://www.example.com/dir1/dir2/dir3/file

    Apache will look for a .htaccess file in all 3 of those directories and the root for rules to apply to the request if you have overriding allowed.

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

Sidebar

Related Questions

Can anyone help with .htaccess URL rewriting rule. I need to redirect pages like
I need help with url-rewriting in .htaccess. So the issue is about different protocols:
I need help about URL rewriting for image gallery for site. This is problem,
I have an issue with URL-rewriting in .htaccess. Here is .htaccess file: RewriteEngine On
Many URL rewriting utilities allow Regex matching. I need some URLs to be matched
I'm writing an MVC3 application that will need to make use of URL rewriting
I have problems with static files url rewriting in current .htaccess setup on Apache2.
What is the strategy of wordpress for url rewriting. In .htaccess they have only
I need a regular expression to match this URL to enable URL rewriting. http://www.somewhere.com/index.php?route=common/home
I'm doing some url rewriting in PHP and need to find URLS with a

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.