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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:28:54+00:00 2026-05-28T05:28:54+00:00

I know that this question have been asked several times. But I can’t get

  • 0

I know that this question have been asked several times. But I can’t get it to work.

I installed Apache2 in my Ubuntu server I can also confirm that mod_rewrite is installed using phpinfo();. I have also put a file called .htaccess in my root folder(/var/www/.htaccess). In my .htaccess file I paste the following code:

Options +FollowSymLinks 
RewriteEngine On 
RewriteRule ^.*$ test.php

So everything is redirected to test.php

But it still doesn’t work. So I checked my httpd.conf file under /etc/apache2. It is completely empty, with no lines of code (This seems a little odd to me)?! However checking in Stackoverflow answers there should be at least the following code in httpd.conf:

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

So I paste that code in httpd.conf. And restarted Apache with sudo /etc/init.d/apache restart. And it still does not work?

I have also tested to open the file /sites-enabled/000-default and /sites-available/default, where all virtual host settings lies and change under the directory /var/www and / to AllowOverride All. The mod_rewrite still doesn’t work. Can anyone please help me. This problem has been baking my nuts for a while.

Also, my apache2.conf file doesn’t work. I tried to write som nonsense. And it is still gives me the normal result instead of http 500 error

  • 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-28T05:28:54+00:00Added an answer on May 28, 2026 at 5:28 am

    All suggestions from Niels Bom are the smartest ones (I think). But I would add this as the first suggestion: try to launch and stop apache via the Ubuntu command: then when it’s supposed to be stopped, make sure it’s stopped ie verify your local page doesn’t show anymore.

    • read what’s in the folder /etc/apache2/. There should be apache2.conf conf.d envvars httpd.conf mods-available mods-enabled ports.conf sites-available sites-enabled
    • then if everything is ok, take a look at mods-enabled where you will find if the mods are enabled if so, then you can go on, otherwise take a look at the other answers about enabling modrewrite
    • take a look at sites-enabled: it’s where you can find the sites that are… (guess what?) enabled. There should be the default website.
    • if so, open this file, and try to put apache nonsense in it, restart the server and see if it’s happy or not. If it’s not happy that’s good. If it’s happy then you’re working on the wrong file
    • last: try to check what are the authorisations for htaccess files for this default vhost. Here’s the way they work: if Apache doesn’t find any directive in the vhost file, it will apply the global configuration. So I’d suggest to add the configuration in your vhost file, between the <virtualhost> – </virtualhost> tags (of course).

    Please tell me what’s going on and I’d be glad to update my question accordingly.

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

Sidebar

Related Questions

I know this question has been asked several times, but I can't quite seem
I know that this question might have been asked like 100 times, but, believe
I know that this question has been asked loads of times, but I have
I know that this question must have been asked and answered a million times,
I know that this question has been asked several times and I've read all
i know that this is a famous question and have been asked many times.
Okay, I know this question have been asked plenty of times already, but I
I know this question might have been asked a few times already, but I
I know this question has been asked several times on SO, but none of
First, I know this question has been asked several times before and that in

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.