SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Cape Cod
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess Question

    Hi All,
    OK so I have a been designing my sites with a .htaccess file that directs all of the incoming traffic to a dispatch file that then splits up the url and puts the page together. Well I am redoing a site that uses miva merchant and I need to allow the hits to the store to go directly through without going through the dispatch file. Here is the current rule. And I think what I am looking for is some help writing a rule to allow www.sitename.org/Merchant2/merchant.mvc through.

    Code:
    RewriteEngine on
    
    RewriteBase /
    
    RewriteRule !\.(php|htm|html|xml|gif|jpg|png|css|js|txt|swf|fla|as|pdf|rtf|ico|zip|xul|xml)$ /DISPATCH.php
    Thanks for any help or suggestions,
    Don

  2. #2
    SitePoint Evangelist Jhorra's Avatar
    Join Date
    Sep 2004
    Location
    Phoenix, Az
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I'm not sure about the entire rule, but I know for my rule using our MVC framework we don't pass image css or js files through that as they are targeting specific files that need to be accessed directly.

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,692
    Mentioned
    20 Post(s)
    Tagged
    3 Thread(s)
    Donnie,

    If you want to redirect (long list of file extensions) to DISPATCH.php, you've got it - except that RewriteBase often causes problems 'cause it's improperly used.

    On the other hand, without seeing your mod_rewrite code, I'd be totally confused.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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