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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:00:14+00:00 2026-06-18T00:00:14+00:00

I changed .htacess file as below. RewriteCond %{REQUEST_URI} (.*)product-list.php(.*) RewriteRule (.*) www.example.com/swimming-pool/product-list\.php$1 [R=301,L] RewriteCond

  • 0

I changed .htacess file as below.

RewriteCond %{REQUEST_URI} (.*)product-list.php(.*)
RewriteRule (.*) www.example.com/swimming-pool/product-list\.php$1 [R=301,L]
RewriteCond %{REQUEST_URI} (.*)product-info.php(.*)
RewriteRule (.*)\?(.*)$ www.example.com/swimming-pool/product\-info\.php$2 [R=301,L]

i just need that when i request for

http://www.example.com/product-info.php?Applepc.html should be redirected to

http://www.example.com/swimming-pool/product-info.php?Applepc.html

Output is getting like this in URL field:-

http://www.example.com/swimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpswimming-pool/product-list.phpproduct-list.php?Flowers-pg1-cid38.html

Please tell me where i am mistaking.

  • 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-18T00:00:16+00:00Added an answer on June 18, 2026 at 12:00 am

    Although you don’t mention what is the purpose of the other rule with product-list.php, it is included in this rule-set.

    You may try this:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (product-list|product-info)\.php  [NC]
    RewriteRule ^(.*)/?$  swimming-pool/$1 [R=301,L]
    

    Redirects permanently any URL like this one

    http://www.example.com/product-info.php?query or

    http://www.example.com/product-list.php?query

    To

    http://www.example.com/swimming-pool/product-info.php?query or

    http://www.example.com/swimming-pool/product-list.php?query

    It seems the problem with the actual rules is they are generating a loop.

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

Sidebar

Related Questions

I try to change over htaccess from http://www.mydomain.com/pictures/generated/product/1/280_280_75/nopic.jpg to http://www.mydomain.com/pictures/generated/product/1/280_280_75/nopic1.jpg Here is my rules
In EE 2.2.2 having this in my htaccess file RewriteRule ^(.*)$ /index.php/view/$1 [L] Allowed
I had the following rewriting set up in my .htaccess file: RewriteRule ^(\w+)/?$ profile.php?customURL=$1
I changed my .autotest file to use it with a Ruby-based project. After that,
I am using the default .htaccess file of opencart below, I manually added the
I agreed to host a file for an online community, but I've since changed
I previously changed my .htaccess file so that my 'subdirectory' (13/) can be the
I need to be able to shorten my page from: mydomain.com/mixtape.php?mixid=(WHATEVER NUMBER) To: mydomain.com/m/(WHATEVER
I have 2 seperate domains at present, I have installed Magento on www.laptops.com, Magento
I have a website http://rochesterwaterskishow.com which they've recently changed their name so they want

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.