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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:23:12+00:00 2026-06-02T10:23:12+00:00

I have too many RewriteRule inside .htaccess . Now i like to remove those

  • 0

I have too many RewriteRule inside .htaccess.

Now i like to remove those RewriteRule and use php to load or redirect my link.

For that i use header but when i use it, my original urls in the browser are changing.

For example:
My original link: http://test.com/something/someID, and when i use header, it change to : http://test.com/page.php?id=

Bottom line i need something like vbseo (vbulletin) to management my link without using RewriteRule, but of course i have the below code inside .htaccess to redirect all my link to some specific page.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php [L,QSA]
  • 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-02T10:23:13+00:00Added an answer on June 2, 2026 at 10:23 am

    Just don’t give any headers. By default redirected links remain the same. (even though the server redirects them, it’s transprent to the client). So you need to pass it to index.php but with a GET value of the original route.

    So…

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f    #If requested filename is not a file
    RewriteCond %{REQUEST_FILENAME} !-d    #If requested filename is not a directory
    RewriteRule ^(.+)$ index.php?route=$1 [L,QSA]
    

    So example.com/this/is/a/test would redirect to example.com/index.php?route=this/is/a/test which then you can check in your index.php file and reroute however you want based on that $_GET['route']

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

Sidebar

Related Questions

I have this url: http://mysite.com/content/14 and this line in htaccess file: RewriteRule ^content\/([^-]+)$ index.php?m=apple&id=$1
I have too many MediaPlayers. What is the accepted method to remove them from
I have too many images to be download from net into iPhone? How can
I am new to Git and I seem to have one branch too many
I have the problem that my view controller class has too many delegates and
Sorry I'm asking too many questions in a row. I have a list of
I have too many columns in a table to display them all at once,
If you have too many javascript file includes with a compositescript in a script
I am writing Perl scripts and when I have too many functions, I usually
Is it bad to have too many tables in a database? I have about

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.