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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:54:19+00:00 2026-06-01T20:54:19+00:00

So, I wanted to organise my projects for better developing. I chose using this

  • 0

So, I wanted to organise my projects for better developing. I chose using this way to organise folders & files:

www
    projects
        project1
           web
           design_tests
        project2
           web
           design_tests
...

The website of each project will go inside its “web” folder. I also wanted to access the web on the browser without putting the “web” folder name, so:

http://localhost/projects/project1
will access the physical files of:
/www/projects/project1/web

I accomplished that adding the next line to my /etc/apache2/sites-available/default file:

AliasMatch ^/projects/([^/]*)(/.*)? /www/projects/$1/web$2

Works perfectly. The problem is, in some websites, i have an .htaccess file with some RewriteRule rules. An example:

RewriteEngine On
RewriteRule styles\.css styles_20120107.css

They used to work without the alias and acessing normal. Now they don’t. It redirects to the URL /project1/web/styles_20120107.css, and of course, the browser can’t get it because of the Alias. I don’t really know how to solve it. Can you give me some help about it please? If possible, doing modifications in the file /etc/apache2/sites-available/default, not on the .htaccess, because i want the websites to be cross-server.

Thanks in advance 🙂

  • 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-01T20:54:22+00:00Added an answer on June 1, 2026 at 8:54 pm

    If adding [PT] flag does not work for you … why not replace alias thing with rewrite rule to achieve the same — in this case you should avoid this issue altogether.

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

Sidebar

Related Questions

I wanted to organize my mp3 files and rename them using the pattern: artist
I wanted to ask about the best way to write this JQUERY code. I
Wanted an easy way to extract year month and day from a string. Using
Wanted to try something new, using the awesome twitter bootstrap and their Less CSS
I wanted to see if I can better organize / optimize my code, and
I am going back and forth with my team on this and wanted to
Wanted to share a way I found to remove strong name from assembly name.
Wanted to know if there is a way to decode the DTMF signals (sent
What do you think is the best way to organise the CSS of a
i need an advice on how organize my files and folders. First of all,

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.