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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:25:18+00:00 2026-05-27T15:25:18+00:00

I used a generator to make my SEO friendly htaccess rewrite, here it is.

  • 0

I used a generator to make my SEO friendly htaccess rewrite, here it is.

RewriteRule ^([^/]*)/([^/]*) /detail.php?type=$1&?id=$2 [L]

The output should be http://www.site.com/type/id

Now, the rewrite works and pages redirect fine, BUT the images on the site no longer show up, they’re all broken… 🙁 The URL for the images is right but seems it just doesn’t want to load anymore, any help? Should there be another Rewrite rule to cancel out this one from doing other stuff? If so, what?

  • 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-27T15:25:19+00:00Added an answer on May 27, 2026 at 3:25 pm

    Your existing rule could affect images. To prevent that, use a RewriteCond directive that will exlcude extensions for images etc. being affected by the rule You can add other extensions as necessary.

    #if its not an image, css, js etc
    RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|css|js|etc)$ [NC]
    RewriteRule ^([^/]*)/([^/]*) /detail.php?type=$1&?id=$2 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Considering that my experience with PHP is limited, I used a contact form generator
To make my Ant Generated swf as small as possible, i used the Runtime
I created a fullscreen flash app on http://dominggus.nl/school/afstuderen/expo/ I used the SWFObject generator to
I have created my first Yii application. I used Gii Model generator for creating
I have used the Java Wireless Toolkit Stub Generator to create a bunch of
I'm working on a random name generator to be used in a game I'm
My interface declarations usually (always?) follow the same scheme. Here's an example: class Output
I'd like to create a PHP image generator that takes several query string parameters
Selenium (RC) is being used to test an ASP.NET 1.1 site. When we make
Trying to make a random password generator in VB.NET So far have got this,

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.