R
R
RastaZ2019-03-04 14:44:18
Apache HTTP Server
RastaZ, 2019-03-04 14:44:18

How to make such a mod_rewrite rule?

Wrote these instructions

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /go?id=$1 [L]

It is necessary that links like 127.0.0.1/blablabla are redirected to go, and if there is / after blabla, then do not follow this rule. Help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-03-04
@shambler81

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI}  !^.+\/&
RewriteRule ^(.*)$ /go\?id\=$1 [L]

something like that
! - this is a denial

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question