After remove index.php, It doesn’t work.
Posted: 19 December 2010 12:31 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

After I remove index.php at General Configuration > Name of your site’s index page. (Also, I touched .htaccess)

SAEF doesn’t work when I submit.

But, posting at forum, commenting at entry are working fine in EE2.

I don’t know how to do.

Profile
 
 
Posted: 20 December 2010 09:03 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Can you show us your htaccess?

Profile
 
 
Posted: 20 December 2010 09:06 PM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

# Standard .htaccess file

# Secure .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# Don’t show any directory without an index file
Options -Indexes

# Dont list files in index pages
IndexIgnore *

# EE 404 page for missing pages
# May differ depending on where your template is located.
# ErrorDocument 404 /index.php?/site/404

# Enable Rewrite Engine
RewriteEngine On
RewriteBase /

# Remove the www from the URL
# You may be able to do this through your web host or you may not need it at all.
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

# Force the www (not used here but listed for reference)
# RewriteCond %{HTTP_HOST} !^www\.
# RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]

# Google Analytics
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^(gclid=.*)
RewriteRule ^(.*)$ /index.php?/ [L,PT]

# Remove index.php
# Uses the “exclude method”
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Exclude_List_Method
# This method seems to work best for us, you might also use the include method.
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
# Exclude root files
RewriteCond $1 !^(favicon\.ico|index\.php|path\.php|php\.ini) [NC]
# Exclude EE folders
RewriteCond $1 !^(editor|expressionengine_system|images|theme|upload)/ [NC]
# Exclude 3rd party folders
RewriteCond $1 !^(css|js|assets)/ [NC]
# Exclude image files
RewriteCond $1 !^(\.gif|\.jpg|\.png) [NC]

# Remove index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

# Remove IE image toolbar
# <FilesMatch “\.(html|htm|php)$”>
#  Header set imagetoolbar “no”
# </FilesMatch>

# RewriteCond %{REQUEST_URI} ^/index.php/member
# RewriteRule ^index.php/(.*)$ /forum/$1 [L,R=Permanent]
RewriteCond %{REQUEST_URI} ^/index.php/forum/member
RewriteRule ^index.php/forum/(.*)$ /$1 [L,R=Permanent]

RewriteCond %{REQUEST_URI} ^/forum/member
RewriteRule ^/forum/(.*)$ /$1 [L,R=Permanent]

# RewriteCond %{REQUEST_URI} ^/index.php/forum/
# RewriteRule ^index.php/(.*)$ /$1 [L,R=Permanent]

 

Profile
 
 
Posted: 20 December 2010 09:07 PM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

And if you view the source on your page, what is the <form> action set to?

Profile
 
 
Posted: 20 December 2010 09:13 PM   [ Ignore ]   [ # 4 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

Here is HTML code

<form id="publishForm" method="post" action="http://ooo.ooo.com/board/create"  enctype="multipart/form-data" 
<
div class='hiddenFields'
<
input type="hidden" name="ACT" value="61" /> 
<
input type="hidden" name="RET" value="http://ooo.ooo.com/board/create" /> 
<
input type="hidden" name="URI" value="board/create" /> 
<
input type="hidden" name="XID" value="4c71629a9cd9d44bddcbe7e2694f21ae76a7d92e" /> 
<
input type="hidden" name="return_url" value="board/index" /> 
<
input type="hidden" name="author_id" value="1" /> 
<
input type="hidden" name="channel_id" value="4" /> 
<
input type="hidden" name="entry_id" value="0" /> 
<
input type="hidden" name="site_id" value="1" /> 
<
input type="hidden" name="return" value="index.php/board/index" /> 
</
div

... 

And it’s template code.

{exp:safecracker channel="board" return="board/index"}

... 

Also I reported this at EE forum.
http://expressionengine.com/forums/viewthread/176316/

[ Edited: 20 December 2010 09:24 PM by unolee ]
Profile
 
 
Posted: 20 December 2010 09:14 PM   [ Ignore ]   [ # 5 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

And what is the form action for the comment form that works?

Profile
 
 
Posted: 20 December 2010 09:28 PM   [ Ignore ]   [ # 6 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

This is HTML code. But it works fine without index.php setting

<p>Add New Comment</p
 
<
form id="comment_form" method="post" action="http://ooo.ooo.com/"  
<
div class='hiddenFields'
<
input type="hidden" name="ACT" value="1" /> 
<
input type="hidden" name="RET" value="http://ooo.ooo.com/board/entry/ID2010122009170523" /> 
<
input type="hidden" name="URI" value="board/entry/ID2010122009170523" /> 
<
input type="hidden" name="PRV" value="" /> 
<
input type="hidden" name="XID" value="14e36a104a7023bb00cca4ca5756671f94f9f69b" /> 
<
input type="hidden" name="entry_id" value="23" /> 
<
input type="hidden" name="site_id" value="1" /> 
</
div
 
 <
p
<
textarea id="comment" name="comment" cols="70" rows="10"></textarea
</
p
<
input type="submit" name="submit" value="Submit" class="button"/> 
    
</
form
Profile
 
 
Posted: 20 December 2010 09:53 PM   [ Ignore ]   [ # 7 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

I’m pretty sure it’s something in your .htaccess. You say there are other form actions that don’t work?

Profile
 
 
Posted: 20 December 2010 09:57 PM   [ Ignore ]   [ # 8 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

It’s because you are adding a trailing slash in your .htaccess.

Profile
 
 
Posted: 20 December 2010 10:00 PM   [ Ignore ]   [ # 9 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

I already checked with/without .htaccess configuration. There are no problem.

Also, other forms work fine without index.php, for example forum, comment… there are no problem except ‘Send private message’ at forum module.

Profile
 
 
Posted: 20 December 2010 10:03 PM   [ Ignore ]   [ # 10 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19
Rob Sanchez - 20 December 2010 09:57 PM

It’s because you are adding a trailing slash in your .htaccess.

Could you tell me more detail… I couldn’t understand well. so, should I remove those part?

# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1[L,R=301] 
Profile
 
 
Posted: 20 December 2010 10:03 PM   [ Ignore ]   [ # 11 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Please try removing these lines from your .htaccess and get back to us:

# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1[L,R=301] 
Profile
 
 
Posted: 20 December 2010 10:08 PM   [ Ignore ]   [ # 12 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

Great. It works now.
Thank you so much.

Profile
 
 
Posted: 20 December 2010 10:09 PM   [ Ignore ]   [ # 13 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Glad to help smile Did that fix your Send private message form, too?

Profile
 
 
Posted: 20 December 2010 10:16 PM   [ Ignore ]   [ # 14 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

No problem at all.
It was problem at Send private message form and edit_comment addon as well.
But there are no problem at all.
Thanks again. ^^

Profile