Re-write apache problems

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Re-write apache problems

Postby xamppliker » 18. August 2013 19:44

I have tried to use this inside the .htaccess file
Code: Select all
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L,NC]

## To internally redirect /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME}.php -f [NC]
RewriteRule ^ %{REQUEST_URI}.php [L]

It works to re-write to take the extension of the file out, but it isn't allowing me to insert data to my database which is configured from a different file, other than to get rid of this completely

Though it is allowing queries and results to be displayed on my website
Posts: 16
Joined: 25. November 2012 16:16
XAMPP Version: 5.6.14
Operating System: windows 7x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: Altrea and 57 guests