ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

HT Access rewrite

August 16, 2012 12:22pm

Subscribe [1]
  • #1 / Aug 16, 2012 12:22pm

    Mat-Moo

    350 posts

    I have a pretty standard htaccess file (Think it’s the one from here) on my site, but I have a special set of forms I want to rewrite and having problems:-

    RewriteEngine On
    
    RewriteCond $1 !^(index\.php|\/index\.php|assets|site-cms|favicon\.ico|cgi-bin)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    
    AddType text/x-component .htc
    Header set Access-Control-Allow-Origin "*"

    So I have a template group “contact” but I want to prename this so the url is \business\contact… \wedding\contact but all go to the same form

    I thought something like RewriteRule /business/contact/conferences /index.php/contact/conferences [R] would work but no go.. any .htaccess experts help me out?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases