Welcome Guest, Not a member yet? Register   Sign In
.htaccess and _POST loses information on redirect
#1

[eluser]ferex[/eluser]
Hi, I've found this article and is the exact problem that i have with the
Post variables in my form

http://ellislab.com/forums/viewthread/84230/#423763

could anyone can help me to write a redirect rule in .htaccess file that works with
POST variables?

my htaccess

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^$ /index.php [L]
RewriteCond $1 !^(index\.php|fotos|img|css|javascript|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]

my site is

http://www.downhill.tyresbolivia.com/contacto

thank you for reading.
#2

[eluser]jalalski[/eluser]
I don't think it is possible to use POST variables with mod_redirect and mod_rewrite.

Sad
#3

[eluser]ferex[/eluser]
thank you for replying

Ok,
So if i can't write a rule
is there a way for a .htaccess file to work with _post files and not affecting each other?

Any advice is welcome.
#4

[eluser]jalalski[/eluser]
Maybe if you explained what the problem is? And what you are trying to do?

You query is not too clear to me, sorry.
#5

[eluser]ferex[/eluser]
ok, my problem is

I have a .htaccess file to redirect pages

because of that the _post files are empty

as derek jones said in topic 84230
Quote:Do you have any .htaccess in play? If you are doing a rewrite that redirects or a regular redirect,
you will lose POST data between page requests.

i want to know is there a way to keep the data in the _post files as well working with .htaccess files.

look to my site and see the variables in the form_validation are empty

my site

thank you.
#6

[eluser]jalalski[/eluser]
look up sessions -> flashdata in the manual, I think that is what you will need.
#7

[eluser]ferex[/eluser]
Thank's jalalski for you help, i'm looking up to solve the problem.




Theme © iAndrew 2016 - Forum software by © MyBB