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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:34:44+00:00 2026-05-22T22:34:44+00:00

EDIT: The default installation of Apache2 on a Ubuntu system seems to be completely

  • 0

EDIT:

The default installation of Apache2 on a Ubuntu system seems to be completely locked down. This also affects the .htaccess files as these aren’t allowed to overwrite anything from the default configuration.

However, editing the /etc/apache2/sites-available/default file did grant my .htaccess files enough privileges to do what I wanted to do:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www

    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>

    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews

        # Modify this from "None" to "All" (or any other suitable value)
-->     AllowOverride None

        Order allow,deny
        allow from all
    </Directory>
    ...

EDIT:

This is what my .htaccess looks like as of now:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)$ $1-$2.php

ORIGIN:

I found several how-to’s about this but I can’t get it right (Yes, I’m that tragically stupid).

I would like to translate this:

http://www.mydomain.com/flat/link?a=b&c=d

To this:

http://www.mydomain.com/flat-link.php?a=b&c=d

As of now I only get a stupid 404 complaining about The requested URL /flat/link was not found on this server.

Worth mentioning is that the 404 actually is right; there is no file-structure like /flat/link in the www-root, hence I will translate a fictional path to an actual one (as the flat-link.php file exists). I’ve been told that this isn’t necessarily the most beautiful architecture but it is a valid scenario as I don’t want my file structure to match my REST-api.

  • 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-22T22:34:45+00:00Added an answer on May 22, 2026 at 10:34 pm

    .* matches everything, try making it less greedy by appending a ? to it:

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+?)/(.+)$ $1-$2.php
    

    If this does not work, try matching everything except for a slash:

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/]+)/(.+)$ $1-$2.php
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to edit the default file located at .. /etc/apache2/sites-available/default on my
[EDIT] Hmm. Perhaps this question should be titled what is the default user-input dialog
Edit : I've got an aspx file (default.aspx) that loads a flash file (index.swf),
default is 49 how to edit to higher?
A VBScript cannot edit the registry by default on Vista. How do I get
Is there a way to change the default pages used to edit/create/view a Sharepoint
I am trying to edit a record. I have the default route. When I
When in Insert Mode or Edit Mode of DetailsView, the default behavior of click
Edit: This question was written in 2008, which was like 3 internet ages ago.
Our WordPress 2.8.6 installation is returning multiple different errors when trying to edit theme

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.