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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:37:54+00:00 2026-05-25T14:37:54+00:00

I have a php file like: http://www.domain.com/?mod=test&act=view And I want to create a redirection

  • 0

I have a php file like: http://www.domain.com/?mod=test&act=view

And I want to create a redirection from that address to something like: http://www.domain.com/view-test

so that everytime a user accesses the first uri it gets redirected to http://www.domain.com/view-test viewing the content of the first uri.

I have the following rules:

RewriteCond %{QUERY_STRING} mod=test&act=view
RewriteRule ^$ view-test? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^view-test.html amas/index.php?mod=test&act=view [L]

This works fine for pages without parameters or forms submissions but If I have any of those nothing works.

Meaning that if I have a form that is submitting to the same file it won’t work. If i have something like http://domain.com/?mod=test&act=view&order_by=id i’m left with the redirected to uri and the order_by parameter is ignored!

Is it even possible to do what I’m trying? I don’t really know much about this and to be honest I’m lost between all the info I find… :/

  • 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-25T14:37:55+00:00Added an answer on May 25, 2026 at 2:37 pm

    Use Query String Append:

    RewriteRule ^view-test.html amas/index.php?mod=test&act=view [L,QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HEllo I have this URL I need to get with PHP http://www.domain.com/forum/#forum/General-discussions-0.htm The problem
I have the following page: www.domain.com/index.php?route=information/contact and I'd like to rewrite it so that
I have an XML document that looks like this: <Data xmlns=http://www.domain.com/schema/data xmlns:dmd=http://www.domain.com/schema/data-metadata > <Something>...</Something>
I've got a number of users, each with the website page like http://www.mysite.com/folder/artist_id.php?id=33 The
I have me .htaccess file happily rewriting things like /conferences/details/21 to /index.php?pages=conferences&var1=details&var2=21 . I
I have a PHP file which will return something like <div id=title>Add Us On
I have a jar file that I would like to execute using PHP, but
I have an htaccess file that uses mod_rewrite to redirect /controller to /index.php?controller=%controller% Like
Do I have to put every file in a different folder? like: about-us/about-us.php profile/profile.php
I have a PHP file, Test.php, and it has two functions: <?php echo displayInfo();

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.