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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:56:54+00:00 2026-05-14T04:56:54+00:00

Below you will find my current vHost entry that I am using for a

  • 0

Below you will find my current vHost entry that I am using for a site that I currently have under development. This vHost entry works fine when I have it on my local machine, but when I push my code to my staging server that is running this same vHost record I receive a 500 Internal Server error.

The machine I’m running this vHost on is running Apache 2.2.9 (Debian).

<VirtualHost 206.217.196.61:80>
    SuExecUserGroup 13labs 13labs
    ServerAdmin aellis@1three.com
    ServerName admin.13labs.net
    ServerAlias admin.13labs.net

    DirectoryIndex index.php
    DocumentRoot /var/www/13labs.net/html/admin/
    ErrorLog /var/www/13labs.net/logs/error.log

    # Hide .svn Directories
    <DirectoryMatch "\.svn">
            Order deny,allow
            deny from all
    </DirectoryMatch>

    # FastCGI
    Alias /fcgi-bin/ /var/www/13labs.net/fcgi-bin/

    AddHandler php-fastcgi .php
    AddType application/x-httpd-php .php
    Action php-fastcgi /fcgi-bin/admin-php.fcgi

    <Directory /var/www/13labs.net/fcgi-bin/>
            SetHandler fcgid-script
            AllowOverride None
            Options -Indexes +ExecCGI -FollowSymlinks -SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    <Directory /var/www/13labs.net/html/admin/>
            AllowOverride None
            Options -Indexes -FollowSymlinks -SymLinksIfOwnerMatch
            FileETag All
    </Directory>

    # Rewrite Logic
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^/(.+)$ /index.php/$1 [PT,QSA,L]

Thanks for any help that you can provide.

Best regards,
Andrew

  • 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-14T04:56:55+00:00Added an answer on May 14, 2026 at 4:56 am

    After many trial and errors I have found that the working RewriteRule needs to be the following:

    RewriteRule ^.*$ /index.php$1 [PT,QSA,L]
    

    Then in PHP I need to be using $_SERVER[‘REQUEST_URI’] instead of $_SERVER[‘PATH_INFO’] to make sure my PHP script see the passed in URI.

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

Sidebar

Related Questions

I'm doing a homework project that requires this: Below you will find the code
thanks for taking the time to stop by my question. Below you will find
The code below will validate required fields within currently visible fieldsets, but only if
I need a regex to run against strings like the one below that will
The code below will find an image if it exists and move it above
In a nutshell, I wish to create a query that will help me find
This is my current function below. Its used to create a folder in a
I will keep this simple. I am looking everywhere to find something to create
I am trying to create a click event that will capture: What the current
I have my attend method below currently in my controller. My question is how

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.