Jennifer23 Posted June 1, 2020 Share Posted June 1, 2020 Can somebody tell me why i am having error i have this different get variables in index.php The RequestFile paramater is for php file and the others are the get variable for a specific file my problem is if i am goin to index.php?Active=$1&PostID=$2&PostName=$3 -> localhost/eg1/eg2/eg3/ it will only retun to me this rewrite rule " RewriteRule ^([a-zA-Z0-9-z-]+)/([^.]+)/?$ index.php?Active=$1&PostCell=$2[L]" RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-z\-]+)/?$ index.php?Active=$1 [L] RewriteRule ^([a-zA-Z0-9-z\-]+)/([^.]+)/?$ index.php?RequestFile=$1&PostCategory=$2 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9-z\-]+)/([^.]+)/([a-zA-Z0-9-z\-]+)$ index.php?RequestFile=$1&PostID=$2&PostName=$3 [L] Quote Link to comment https://forums.phpfreaks.com/topic/310879-htaccess-help-different-get-variables/ Share on other sites More sharing options...
requinix Posted June 1, 2020 Share Posted June 1, 2020 [^.] means anything that isn't a period. That will include slashes. Quote Link to comment https://forums.phpfreaks.com/topic/310879-htaccess-help-different-get-variables/#findComment-1578584 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.