I hide .php extension and my contact form is not working anymore, can someone help? can i make a rule to show .php only on contact form page?
This is the code i use to hide .php
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.pillopips.es/$1 [R,L]
RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
contact form code:
<div class="contactform">
<form action="envia.php" method="post" class="form-consulta">
<label>
<input type="text" name="nombre" placeholder="name" class="campo-form" required>
</label>
<label>
<input type="email" name="email" placeholder="mail" class="campo-form" required>
</label>
<label>
<textarea name="message" placeholder="message" class="campo-form"></textarea>
</label>
<input type="submit" value="Enviar" class="btn-form-enviar">
</form>
</div>
Aucun commentaire:
Enregistrer un commentaire