Announcement

Collapse
No announcement yet.

.htaccess problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    .htaccess problem

    Hi folks,

    I've just installed a new store at my own domain with CSSUI & Suivant. By default, there's a .htaccess file that redirects everything to the store. But I have a few static HTML pages at this domain, and a couple of folders with multiple pages and sub-folders. So there are a handful of URLs that I want to NOT be redirected into the store, such as:

    http://TheMagicM.com/payment/ (a single page, where my clients pay me)

    http://TheMagicM.com/modhelp/ (a folder containing sub-folders containing help pages for modules I've published)

    The default .htaccess code looks like this:
    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteCond %{REQUEST_URI} !^/mm5/.*$
    RewriteRule ^(.*)$ /mm5/uri.mvc? [QSA,L]
    I dont suppose I'm the first person to have this problem. Can someone give me some commands to provide the "non-redirects" that I need?

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    The rewrite that was added for you by support recently is the correct way to avoid the rewriting for specific directories, however, by adding more lines to it, you broke the line that was there because Apache 'RewriteCond' statements have an implicit AND when they are stacked, so you ended up with a combination of conditions that must all be met, but could never be met. Adding [OR] after all but the last condition resolves that issue.
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment


      #3
      Hi David, thanks for jumping in.

      That .htaccess snippet, without the [OR] elements, was given to me by a Miva support person. Maybe he's new ...

      I really don't know much about .htaccess. If you know of a good tutorial or other resource, I'd appreciate a link.

      To summarize: I'd like my site to be set up so that:

      * themagicm.com/store/ -- takes you to the Storefront page

      * themagicm.come/store/anything -- gets passed to URI Management and takes you to a page within the store

      * themagicm.com/xxxxx/yyyyy/... -- takes you to a static page (as long as xxxxx is not "store," of course)

      * themagicm.com -- domain name with no additional path, takes you to a static home page

      I already added "/store" to the URL Prefix setting, and that is showing up in links on store pages; but none of the links work when I click on them. Hope you can clear this up?

      Thanks & Have a good weekend!
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment


        #4
        I'd recommend re-opening the existing ticket if you need further customization. The support personnel gave the answer based on what was asked; they did not know that you required other directories excluded from the URI management system.
        David Hubbard
        CIO
        Miva
        [email protected]
        http://www.miva.com

        Comment

        Working...
        X