Jump to content
Jennifer23

.htaccess Help different get variables

Recommended Posts

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]

 

Share this post


Link to post
Share on other sites

[^.] means anything that isn't a period. That will include slashes.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.