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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:24:56+00:00 2026-05-27T00:24:56+00:00

I currently have the following htaccess <IfModule mod_rewrite.c> # redirect all calls to index.php

  • 0

I currently have the following htaccess

<IfModule mod_rewrite.c>

# redirect all calls to index.php
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.site.co.uk$ [NC]
RewriteRule ^(.*)$ http://www.site.co.uk/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]

</IfModule>

which redirects non www links to www, and then after that for files and directories that don’t exist it sends them to the index file. I have written a line that should create a friendly URL for using timthumb. Ive tried a few variations and tried it in a few places and still can’t get it to work.

RewriteRule ^thumb/([^/])/([^/])/([^/]*)$
/_includes/thumb.php?src=images/case/$1&w=$2&h=$3 [L]

or

RewriteRule ^thumb/([^/])/([^/])/([^/]*)$
/_includes/thumb.php?src=$1&w=$2&h=$3 [L]

I would appriciate any suggestions, thankyou.

  • 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-27T00:24:57+00:00Added an answer on May 27, 2026 at 12:24 am

    I think the answer was in putting the image last, and removing the possibilty of having slashes in the image path. Also added a line to negate the index.php redirect for requests to the thumb folder:

    <IfModule mod_rewrite.c>
    
    # redirect all calls to index.php
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www.site.co.uk$ [NC]
    RewriteRule ^(.*)$ http://www.site.co.uk/$1 [L,R=301]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
          RewriteCond %{REQUEST_URI} !^/(thumb) [NC]
    RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
          RewriteRule ^thumb/c/(.*)/(.*)/(.*) _includes/thumb.php?src=../images/case/$3&h=$2&w=$1
    
    
    </IfModule>
    

    New lines have been indented further

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

Sidebar

Related Questions

I have the following in my .htaccess currently- <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^go/([^/]*)/([0-9]+)/([0-9]+)/?$
I currently have the following htaccess rewrite rule: RewriteRule (.*) index.php/$1 [L] How do
I have the following conditions in my .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^ex\.co$
Currently I have these rules in my .htaccess file: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule
I currently have my .htaccess file as the following: ErrorDocument 404 /404.php RewriteEngine on
I have a main page, index.php and I would like to redirect all URI
I am using WordPress's permalink structure %category%/%postname%/ with the following htaccess: <IfModule mod_rewrite.c> RewriteEngine
I currently have this in .htaccess: Options +FollowSymlinks RewriteEngine on RewriteRule ^page/(.*)/(.*)$ /type1/internal.php?parentFolders=$1&pageTitleID=$2 [L]
Currently I have the following rules... RewriteRule ^([^/]+)/([^/]*)(.htm)?$ index.php?filter=$1&page=$2 [L,QSA] RewriteRule ^([^/]+)/$ index.php?filter=$1 [L,QSA]
I have the following rule in my current .htaccess file to redirect /videos/login/ requests

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.