4 Replies - 1845 Views - Last Post: 30 November 2012 - 08:01 AM

#1 jasber  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 30-November 12

.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:

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


Is This A Good Question/Topic? 0
  • +

Replies To: .htaccess

#2 Kruithne  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 99
  • View blog
  • Posts: 439
  • Joined: 28-July 09

Re: .htaccess

Posted 30 November 2012 - 07:42 AM

Hello,

This does not appear to be a PHP error, nor very well explained.
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is online

  • Head MFIC
  • member icon

Reputation: 5063
  • View blog
  • Posts: 26,441
  • Joined: 10-May 07

Re: .htaccess

Posted 30 November 2012 - 07:51 AM

I agree, moving to Web Servers & Hosting as .htaccess is independent of php.
Was This Post Helpful? 0
  • +
  • -

#4 jasber  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 30-November 12

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 :(
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is online

  • Head MFIC
  • member icon

Reputation: 5063
  • View blog
  • Posts: 26,441
  • Joined: 10-May 07

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1