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

  • Home
  • SEARCH
  • 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 8606925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:12:57+00:00 2026-06-12T03:12:57+00:00

In my main public directory, I have this .htaccess file, however when visiting /register

  • 0

In my main public directory, I have this .htaccess file, however when visiting /register I get a 404 error.

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^register$ register.php

With this, I want to make anyone who visits /register to use /register.php. I am certain that mod_rewrite is enabled and AllowOverride All is present in my virtual host file.

Does anyone know how I can troubleshoot this? All I get is The requested URL /register was not found on this server.

Virtual host:

<VirtualHost *:80>
        ServerAdmin my@email.com

        ServerName my.site.com
        DocumentRoot /home/mark/public
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /home/mark/public>
                Options All MultiViews ExecCGI
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /home/mark/logs/public_error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog /home/mark/logs/public_access.log combined
</VirtualHost>
  • 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-12T03:12:59+00:00Added an answer on June 12, 2026 at 3:12 am
        <Directory /home/mark/public>
                Options All MultiViews ExecCGI
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
    

    You need to turn off MultiViews:

                Options All -MultiViews ExecCGI
    

    It’s messing with optional content negotiation. From the apache documentation:

    If the server receives a request for /some/dir/foo and /some/dir/foo does not exist, then the server reads the directory looking for all files named foo.*, and effectively fakes up a type map which names all those files, assigning them the same media types and content-encodings it would have if the client had asked for one of them by name. It then chooses the best match to the client’s requirements, and returns that document.

    If you’re going to have a rule to rewrite /register to /register.php, you don’t want MutliViews mucking things up before it even gets to your rewrite rules.

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

Sidebar

Related Questions

My main public_html directory has the following .htaccess rules: Options +FollowSymLinks IndexIgnore */* <IfModule
I have this code which reads all the files from a directory. File textFolder
I have this section of code: public static void delete(File f) throws IOException {
I have this java code that renames a file (or directory). There is a
I have a main class and two extended classes: class Main { public $foo;
I have created an array Man: public main blah blah{ man = man[10]; }
I have a class class with main thread public class MainThread extends Thread {
Let's say I have this Hello.scala. object HelloWorld { def main(args: Array[String]) { println(Hello,
I have a problem with .htaccess. I have a website in the main server
Let's imagine I have this class : public class FileData { public Weigth {

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.