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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:04:44+00:00 2026-06-06T17:04:44+00:00

My .htaccess file in my htdocs folder does not work. I tried to redirect

  • 0

My .htaccess file in my htdocs folder does not work. I tried to redirect to Google when accessing a filename. I want to find out where the settings for my httpd.conf are, so I can enable mod_rewrite. I did the following UNIX command to find out if a httpd.conf file existed on my hard drive:

find * -name "httpd.conf"

The file does not exist. I am thinking that maybe there is another file that controls mod_rewrite. I want to see if “AllowOverride” exists in any directory. I entered the following UNIX command:

grep -r "AllowOverride" *

But it’s hard to read because it prints out so many folders. The message that accompanies the folders are “Permission denied” or “No such file or directory”. How do I only get the file paths of files that contain AllowOverride?

  • 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-06-06T17:04:46+00:00Added an answer on June 6, 2026 at 5:04 pm

    Many Unix and similar systems provide a locate(1) command that uses a database to speed finding individual files. Try this:

    locate httpd.conf
    

    Note, of course, that Apache configurations are stored in files of all sorts of names; I’ve seen apache.conf, httpd.conf, httpd2.conf, and then there’s the giant pile of /etc/apache2/conf.d/ — entire directory structures set aside for configuring Apache. Your distribution may vary.

    Perhaps apachectl configtest will show the paths? (currently not installed on my machine, so I can’t easily test.)

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

Sidebar

Related Questions

I have placed .htaccess file in my server's root folder with following content: Redirect
The htaccess file requires an entry at the end of /folder/ to redirect the
I have a .htaccess file in the root of a website: /var/www/mywebsite/htdocs/.htacess and I
In my htaccess file, i want to respond with a http 403 code if
My htaccess file is a bit complex but it used to work on my
I have an .htaccess file using mod_rewrite to redirect URLs from the old website
I'm trying to protect a folder with Digest Authentication through a .htaccess file: AuthType
have such kind of error. When adding Redirect 301 rule to .htaccess file like:
My website needs a .htaccess file that will redirect a user to index.php when
Currently my htaccess file contains this rule, to redirect website.org/index.php to website.org/en/home RewriteRule index.php

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.