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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:48:18+00:00 2026-05-29T03:48:18+00:00

Here my .htaccess Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} \/([0-9a-zA-Z]+)$ [NC] RewriteRule ^(.*) image.php?names[]=%1

  • 0

Here my .htaccess

Options +FollowSymLinks

RewriteEngine on
RewriteCond %{REQUEST_URI} \/([0-9a-zA-Z]+)$ [NC]
RewriteRule ^(.*) image.php?names[]=%1 [L]

RewriteCond %{REQUEST_URI} \/([0-9a-zA-Z]+),([0-9a-zA-Z]+)$ [NC]
RewriteRule ^(.*) image.php?names[]=%1&names[]=%2 [L]

RewriteCond %{REQUEST_URI} \/([0-9a-zA-Z]+),([0-9a-zA-Z]+),([0-9a-zA-Z]+)$ [NC]
RewriteRule ^(.*) image.php?names[]=%1&names[]=%2&names[]=%3 [L]

RewriteCond %{REQUEST_URI} \/gallery/([0-9a-zA-Z]+)$ [NC]
RewriteRule ^(.*) gallery.php?id[]=%1 [L]

this 2 strings doesn’t work correctly

RewriteCond %{REQUEST_URI} \/gallery/([0-9a-zA-Z]+)$ [NC]
RewriteRule ^(.*) gallery.php?id[]=%1 [L]

When I go to gallery/hgJ56 , I see the content of first 2 strings

RewriteCond %{REQUEST_URI} \/([0-9a-zA-Z]+)$ [NC]
RewriteRule ^(.*) image.php?names[]=%1 [L]

I’m in trouble, can’t understand^, please help! What can I do ?

  • 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-29T03:48:19+00:00Added an answer on May 29, 2026 at 3:48 am

    This rule

    RewriteCond %{REQUEST_URI} /([0-9a-zA-Z]+)$ [NC]

    will match a string that ends with a / followed by an alphanumeric string, so it will match gallery/hgJ56, because it ends with /hgJF6.

    If the rule is only supposed to match a string that begins with a / followed by an alphanumeric string, then you can change this rule to

    RewriteCond %{REQUEST_URI} ^/([0-9a-zA-Z]+)$ [NC]
    

    and it will not longer match gallery/hgJ56 and your other rule will work.

    Note that you do not need to escape the / character i.e. \/ and just / are equivalent.

    You may also want to apply the ^ to the rest of your rules in case they also are only supposed to match the start of the string i.e change

    RewriteCond %{REQUEST_URI} \/gallery/([0-9a-zA-Z]+)$ [NC]
    

    to

    RewriteCond %{REQUEST_URI} ^/gallery/([0-9a-zA-Z]+)$ [NC]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my .htaccess: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d RewriteRule
Here is my .htaccess file: Options +FollowSymlinks RewriteEngine on Rewritecond %{http_host} ^mysite.com [nc] Rewriterule
Here is my htaccess file Options +FollowSymLinks RewriteEngine on # For Accessing Page http://www.domain.com/news/news-details.php
Here is the code I have currently in my .htaccess file: Options +FollowSymLinks RewriteEngine
in my .htaccess file i do have these lines: Options +FollowSymLinks RewriteEngine on RewriteCond
Here's what my htaccess looks like: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.site.com$ [NC]
I'm writing a mod_rewrite script. Here's my .htaccess file thus far: RewriteEngine On Options
here is my .htaccess file, it works because the first rewriterule correctly redirects .html
Here's my setup: config.php 'urlManager'=>array( 'urlFormat'=>'path', 'rules'=>array( '<controller:\w+>/<id:\d+>'=>'<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>' ), 'showScriptName'=>false, ), .htaccess
I have a .htaccess file that looks like this: SetEnv APPLICATION_ENV development RewriteEngine On

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.