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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:34:24+00:00 2026-06-16T17:34:24+00:00

I am trying to redirect http://test.pearlsquirrel.com/explore_all?u=hiphop to http://test.pearlsquirrel.com/explore_all/hiphop using htaccess. However, It keeps redirecting

  • 0

I am trying to redirect http://test.pearlsquirrel.com/explore_all?u=hiphop to http://test.pearlsquirrel.com/explore_all/hiphop using htaccess. However, It keeps redirecting here: http://test.pearlsquirrel.com/explore_all/?u=site_error.php. I have looked all over Stackoverflow for the answer but I just can’t seem to find it. I would really appreciate some help in fixing this problem, thanks!

Here is my .htaccess file

Options +FollowSymlinks
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^www\.pearlsquirrel.com$ [NC]
RewriteRule ^(.*)$ http://pearlsquirrel.com/$1 [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)/$ $1.php

RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+) explore_all?u=$1 [L]
  • 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-16T17:34:26+00:00Added an answer on June 16, 2026 at 5:34 pm

    You may try this:

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

    Will map this:

    http://test.pearlsquirrel.com/explore_all?u=hiphop

    To this:

    http://test.pearlsquirrel.com/explore_all/hiphop

    Replace the corresponding code in your .htaccess file with this one.

    I have not checked the rules in your .htaccess file.

    OPTION

    Now, if it is the other way around, which I think it is, and the idea is to map this incoming URL:

    http://test.pearlsquirrel.com/explore_all/hiphop

    To this resource:

    http://test.pearlsquirrel.com/explore_all?u=hiphop

    Replace the above rule set with this one:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI}  .*/([^/]+)/?
    RewriteRule .* http://test.pearlsquirrel.com/explore_all?u=%1 [L] 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to redirect users trying to access http://example.com/car/ to http://example.com/car/blue/ in .htaccess I
I am trying to redirect from: http://domain.com/public/photos/large/test.jpg to: http://domain.com/images/public/photos/large/test.jpg on a NGINX environment. My
I am trying to redirect /folder to / using .htaccess but all am I
I am trying to redirect my visitors to for example http://localhost/site/test.php?lang=en_US based on the
I am using the following gem in my rails application: http://github.com/fnando/post_commit I am trying
Update: The problem below occurs when I add: <script src=http://code.jquery.com/jquery-1.7.1.min.js></script> I'm trying to redirect
I am trying to redirect: Entered URL: http://localhost/Test/Test1/key/val To the following address, but showing
I'm trying to test if the following page http://support.xbox.com/en-US/xbox-360/console-freeze/screen-freeze-wizard . The page redirects to
I'm using html5 boilerplate and I'm trying to test if my htaccess is working
Here's my redirect rule: RewriteCond %{HTTP_HOST} ^mydomain\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ RewriteRule ^somedir\/?(.*)$ http\:\/\/mydomain\.com\/newdir\/somedir\/$1

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.