QUERY_STRING in .htaccess While redirecting?

Your second test pattern ( $ ) only matches the case where the user doesn't put any path information in, but does include a query string (e. G example.com/?id=12 ). Also note that the backreference $1 has no value in that rule either The simplest solution is to just combine the two rules, since you can use the QSA flag to do the work of appending the id part for you: Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_FILENAME}!

-f RewriteRule ^(^/+)$ /index. Php? Page=$1 QSA,L.

Your second test pattern (^$) only matches the case where the user doesn't put any path information in, but does include a query string (e.g. Www.example. Com/? Id=12).

Also note that the backreference $1 has no value in that rule either. The simplest solution is to just combine the two rules, since you can use the QSA flag to do the work of appending the id=# part for you: Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_FILENAME}! -f RewriteRule ^(^/+)$ /index.

Php? Page=$1 QSA,L.

I really really really really really appreciate your help. You totally saved my day. – Eyad A Oct 2 '10 at 17:47 @Eyad: Glad to help!

– Tim Stone Oct 2 '10 at 17:54.

The condition of your first rule fails as the query is not empty. Try it without that condition but with the following condition instead: RewriteCond $1! =index.

Php RewriteRule ^(^/+)$ /index. Php? Page=$1 L.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions