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.

remove index.php & SafeCracker

November 05, 2011 1:06pm

Subscribe [1]
  • #1 / Nov 05, 2011 1:06pm

    ahmad saad

    364 posts

    I use SafeCracker in my contact us page and it works fine.

    but when I remove index.php from My Url, SafeCracker does not work at all(dose not add entry, dose not show error message…).

    My code in .htaccess file is:

    # BEGIN ExpressionEngine Rewrite
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^exampel\.com
    RewriteRule (.*) <a href="http://www.exampel.com/$1">http://www.exampel.com/$1</a> [R=301,L]
    
    RewriteCond %{HTTP_HOST} exampel.com
    RewriteCond %{REQUEST_URI} !site/
    
    RewriteCond $1 !\.(gif|jpe?g|png|ico)$ [NC]
    RewriteRule ^(.*)$ /site/index.php/$1 [L]
    
    </IfModule>
    # END ExpressionEngine Rewrite

     

  • #2 / Nov 07, 2011 9:23am

    ahmad saad

    364 posts

    more info

    I use ee2.3.1

  • #3 / Nov 07, 2011 9:37am

    Kevin Smith

    4784 posts

    Hi ahmad,

    There are numerous ways you can customize Apache and .htaccess, but in order to ensure the widest range of compatibility, we’re only able to support one method for removing index.php from your URLs. Could you replace your entire .htaccess (after backing up your current one, if you like) with the recommended set of directives in the user guide? I suspect the problems you’re having probably stem from something in your current set of .htaccess directives.

    Having done this, are you still experiencing issues?

  • #4 / Nov 08, 2011 4:24pm

    ahmad saad

    364 posts

    when I remove:

    RewriteBase /
    RewriteCond %{HTTP_HOST} ^exampel\.com
    RewriteRule (.*) <a href="http://www.exampel.com/$1">http://www.exampel.com/$1</a> [R=301,L]

    it works fine.

    thanks

  • #5 / Nov 10, 2011 3:19pm

    Kevin Smith

    4784 posts

    Glad to see you were able to make some good progress. Since it looks like this is an issue related to your rewrites, would you consider this support request resolved? If you’ve got everything under control, I’d be glad to close this request out for you.

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

ExpressionEngine News!

#eecms, #events, #releases