skip to Main Content

Mod Rewrite – Clean URL with query string not working – Apache

I have the following .htaccess file. <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On DirectoryIndex api.php FallbackResource index.php RewriteCond %{REQUEST_URI} ^/api RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{QUERY_STRING} ^$ RewriteRule ^/([^/]+)/([^/]+)$ $1/$1.php?endpoint=$2 [L] RewriteRule ^([^/]+)/([^/]+)/([^/]+)$ $1/$1.php?endpoint=$2&id=$3 [L] RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)$ $1/$1.php?endpoint=$2&id=$3&endpoint2=$4 [L]…

VIEW QUESTION

PHP Crash on echo – Apache

PLEASE IGNORE THIS QUESITON - I FOUND THAT THE PROBLEM DESCRIBED HERE IS NOT THE REAL PROBLEM. thanks to those who tried to help. The problem is gmagick specific. Not a general php issue. I have this simple code on…

VIEW QUESTION
Back To Top
Search