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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:34:07+00:00 2026-06-01T22:34:07+00:00

This problem has been bugging me for a while now. I have a created

  • 0

This problem has been bugging me for a while now.

I have a created a small site engine and I’m using mod_rewrite to tell the engine what page to proccess, SEO friendly links is a bonus :).

This is how it’s works today:

the adress http://www.example.com/site/page
becomes http://www.example.com/engine.php?address=page

But what i want is:
the adress http://www.example.com/page
becomes http://www.example.com/engine.php?address=page

Everything works fine if i create a psuedo directory for the calls (/site) but when i try to do the same from the root strange things start to happends.

RewriteBase /
RewriteRule ^site/(.*) engine.php?%{QUERY_STRING}&address=$1

Works fine: /site/about/contacts becomes eninge.php?address=about/contacts

RewriteBase /
RewriteRule ^(.*)$ eninge.php?%{QUERY_STRING}&address=$1

Doesn’t work, for some reason /about/contacts becomes eninge.php?address=eninge.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-06-01T22:34:08+00:00Added an answer on June 1, 2026 at 10:34 pm

    (.*) means catch anything. Have you tried exluding files and directory before your catch-all ? Because it will cause an infinite recursion without it.

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ eninge.php?%{QUERY_STRING}&address=$1 [L]
    

    More information is available in the official documentation: http://httpd.apache.org/docs/current/mod/mod_rewrite.html

    Update: You should also specify [L] at the end of your rule, to tell Apache to end the rewriting process here.

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

Sidebar

Related Questions

This Jquery problem has been bugging me for a while now. I developed a
This problem has been bugging me for a while. I have to load a
This problem has been kicking my butt for a few days now. I have
This has been bugging me for some time now. My problem is the following.
This problem has been getting at me for a while now. Is there an
This has been bugging me for the last few hours now. I am using
This problem has been bothering me for sometime now, I have not settled on
Ok, this has been bugging me for a while now. And I wonder how
This has been bugging me for a while. I have this ircbot that I
This problem has been bugging me since forever. I have an array and in

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.