RewriteEngine on
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)\.html$ /$1 [R,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)\.php$ /$1 [R,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ $1.html
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.html$ $1.php
.htaccess
Page 1 of 14 Replies - 1412 Views - Last Post: 30 November 2012 - 08:01 AM
#1
.htaccess
Posted 30 November 2012 - 07:40 AM
My .htaccess file kinda blocks my contact form its shows on browser but filling out the form and pressing SEND i wont get any feedback:/ And i know this because if i delete it then contact form works just fine... But then again if i search my site on any search engine it shows my sites like www.mysite.com/index not index.html or index.php and then people cant get my site
/> My current .htaccess file is made by my host server:
Replies To: .htaccess
#2
Re: .htaccess
Posted 30 November 2012 - 07:42 AM
Hello,
This does not appear to be a PHP error, nor very well explained.
This does not appear to be a PHP error, nor very well explained.
#3
Re: .htaccess
Posted 30 November 2012 - 07:51 AM
I agree, moving to Web Servers & Hosting as .htaccess is independent of php.
#4
Re: .htaccess
Posted 30 November 2012 - 07:59 AM
well...
if i remove this .htacces file form my host server and test out my contact form then all works i get a mail right.
And wenn i put it back to remove all .html .php extensions and test again i wont get a mail
if i remove this .htacces file form my host server and test out my contact form then all works i get a mail right.
And wenn i put it back to remove all .html .php extensions and test again i wont get a mail
#5
Re: .htaccess
Posted 30 November 2012 - 08:01 AM
Then I would have to ask why you have the .htaccess file? What are you trying to accomplish with it? If your contact form pushes values over the $_GET array, they are likely being truncated in the re-write.
But because the code works, that's even further reason that this isn't a php error, it's a webhosting error.
But because the code works, that's even further reason that this isn't a php error, it's a webhosting error.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|