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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:33:25+00:00 2026-05-19T04:33:25+00:00

I have installed a Apache (on ubuntu) with some vhosts. In the www-dirs I

  • 0

I have installed a Apache (on ubuntu) with some vhosts.
In the www-dirs I have a file (for example) called info.php. And I can
open this file by /info.php AND /info (without the .php at the end).

There is no mod_rewrite rule in the Vhost or the dir.

And if I try a rewrite rule like:

RewriteRule ^info$ http://www.google.com/ [R=307,L]

and reopen /info (without the .php) it dosn’t work.

When I change the role to

RewriteRule ^info.php$ http://www.google.com/ [R=307,L]

and reopen the /info it works.

And when I try this rule:

RewriteRule ^(.*)$ echo.php?value=$1 [L]

and open a site like /foo and print the $value I get “echo.php“. When I try /foo/bar I get “echo.php/bar“

Does anyone have a tip for me?

Add:
Here are some information from the phpinfo():

SCRIPT_FILENAME /var/www/test/echo.php 
QUERY_STRING    value=echo.php
REQUEST_URI     /foo
SCRIPT_NAME     /echo.php 
  • 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-19T04:33:25+00:00Added an answer on May 19, 2026 at 4:33 am

    You need a RewriteCond before your RewriteRule that matches the base case where no rewriting should occur. Otherwise your redirected request will also be rewritten.

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

Sidebar

Related Questions

I have just installed CentOS, Apache and PHP. When I visit my site http://example.com/myapp/
I have a linux server running ubuntu 10.10 maverick with apache and php installed,
I have installed apache on my server however I can not browse my website
I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I have just installed Debian Lenny with Apache, MySQL, and PHP and I am
I have a file test.py at /var/www and I am using apache2 on ubuntu
I have installed Apache and Subversion on Windows. My config is: <Location /svn> DAV
I am new to java vaadin framework. I have installed APACHE TOMCAT 6 and
I have Apache installed with the XAMPP package, and I'm working locally. I have
I have the following version being installed: Apache::SmallProf - 0.09 Apache::Registry - 2.01 Devel::SmallProf

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.