Results 1 to 3 of 3

Some Out of the Norm Rewrite Help

This is a discussion on Some Out of the Norm Rewrite Help within the General Discussion forums, part of the vBulletin SEO Discussion category; Currently I have vbseo rewrite attachments to /content/attachments/xxx-xxxx.jpg I am inserting some hotlink protection that will detect external requests and ...

  1. #1
    Senior Member
    Real Name
    kyrivalry
    Join Date
    Nov 2009
    Posts
    103
    Liked
    0 times

    Some Out of the Norm Rewrite Help

    Currently I have vbseo rewrite attachments to /content/attachments/xxx-xxxx.jpg

    I am inserting some hotlink protection that will detect external requests and will take the last part of the URL and rebuild the image to add a watermark. The watermark.php file requires the path of the file in order to rebuild it and it therefore thinks that the location in /content/attachments/xxx-xxxx.jpg. This results in a broken image instead of the rebuilt image with the watermark.

    Is there anything I can do with vbseo to actually decipher the /content/attachments/xxx-xxxx.jpg and instead of using it as the original image source, find the actual image source to rebuild it?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Put any image rules in your htaccess file BEFORE vbseo triggers, and it won't be re-written yet.

  3. #3
    Senior Member
    Real Name
    kyrivalry
    Join Date
    Nov 2009
    Posts
    103
    Liked
    0 times
    Hey Brian,

    I have my watermark rewrite before anything else. The problem is that hotlinkers find the image url /content/attachments/xxx-xxxx.jpg and try to embed that. The watermark.php script looks for anything .jpg/gif/png/etc and tries to fetch the image from that physical location to rebuild it with a watermark. Since the image doesnt physically reside in /content/attachments it just shows a broken image.

    I think what I am going to have to do is explode the _[GET] to retrieve the attachment id, query the db for the attachment to find the path and rebuild it behind the scenes.

Similar Threads

  1. Bug: Rewrite Member Profile / Rewrite Albums URLs
    By sbrunhuber in forum Bug Reporting
    Replies: 3
    Last Post: 06-20-2009, 09:34 PM
  2. Converting .htaccess rewrite rule to vbseo rewrite
    By tscargo in forum Custom Rewrite Rules
    Replies: 1
    Last Post: 04-20-2009, 02:34 PM
  3. Rewrite for custom 'app' - rewrite and retrieving 'GET' variables..?
    By amnesia623 in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 02-09-2008, 01:50 AM
  4. Anyone using Custom Rewrite Rules to rewrite OpenAds ad urls?
    By echamberlain in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 12-12-2007, 06:24 PM
  5. URL Rewrite Settings / Custom Rewrite Rules
    By shanemcse in forum General Discussion
    Replies: 0
    Last Post: 03-04-2006, 01:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •