M
M
Maxim2015-03-09 10:56:36
Apache HTTP Server
Maxim, 2015-03-09 10:56:36

What does this line mean in htaccess?

RewriteRule ^([^/.]+|[^/.]+\.php)$ pages.php?contentpagename=$0&%{QUERY_STRING} [L]

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya Korablev, 2015-03-09
@swipeshot

Apparently, it removes .php at the end of the link

S
ShamblerR, 2015-03-10
@ShamblerR

all urls containing 2 slashes and php at the end like
111/222/luboe.php?=3343a3423 and so on
redirects to
pages.php?contentpagename=$0 PLUS the old get from here.

M
Mr. DAVIDhaker, 2015-03-13
@DAVIDhaker

This is a "transparent" redirect.
See mod_rewrite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question