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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:57:19+00:00 2026-06-11T03:57:19+00:00

I am not exactly sure whats wrong, most-likely my htaccess is wrong. In any

  • 0

I am not exactly sure whats wrong, most-likely my htaccess is wrong. In any event there are two files on server one called “club.php” and other called “image.php” the club.php is re-written to look like a directory as such ex; club1

the url would look like this without re-write ex; club.php?cid=1 cid being club id

now the image.php file goal is to call an image from database via path and to display it to user without exposing actual image path on the server.

For this there are two values that are passed into query “cid” and “type”. The problem with my current htaccess is that anytime there is a backslash added to the club1 it stops working and displaying data same happens for image.php which no longer works as well.

Since i am using club1/some-page-name style architecture backslashes are required. But sadly they don’t work with my current re-write rules.

Here is my current htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteRule ^club([0-9]+) index.php?clubID=$1 [L]

    RewriteRule ^image/_header([0-9]+)_([0-9]+) image.php?cid=$1&type=$2 [L]

        <IfModule mod_env.c>
             SetEnv SEO_SUPPORT 1
        </IfModule>
</IfModule>

Could some one point out what I am doing wrong and what I can do to fix the backslash issue. Thank you kindly in advance.

File Tree

http://localhost/dev1
       - index.php
       - image.php
       - club.php
       - .htaccess
       -> php
          - db.class.php
          - functions.class.php
       -> css
          - menu.css
       -> js
          - html5handler.js
       -> uploads
  • 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-11T03:57:21+00:00Added an answer on June 11, 2026 at 3:57 am

    Found the problem. The problem was with the fact as /page was being added to the url after club# it forced the image script to point to the main directory instead of its test directory /dev1 so the url would have became

    image/_header1_4 instead they needed to be dev1/image/_header1_4

    So in the end this was not the htaccess problem

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

Sidebar

Related Questions

Not sure exactly what is wrong here. I'm not sure if I am supposed
Never used fwrite(), so I'm not sure exactly what I'm doing wrong. I'm just
I am not exactly sure what is going wrong. I implemented everything specified by
I'm not sure exactly what went wrong here, but ReSharper 4.5 RTM seems to
I am not exactly sure what's happening here - I open a terminal window
Note: I am not exactly sure what to name the question, so if someone
Not sure exactly what I need to do to make this work, so my
We are getting a weird issue on which we are not sure what exactly
I'm getting the error mentioned in the title and not sure what exactly I
I'm not sure exactly how to describe what I want to do, so I'll

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.