mod_rewrite showing modified URL in Apache access log

Operating System & Version
Centos 7

MohammadNehme

Member
Jul 23, 2022
10
2
3
Lebanon
cPanel Access Level
Root Administrator
Greetings ...
In my Website i triggered the mod_rewrite rule to make a URL pretty print , but what I need at the Apache's access log level is that I want to log the URL as its original form was with parameters , for example : article.php?id=123&cat=22 not as a URL pretty print .
Any help would be appreciated .
Thanks in advance .
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,463
2,114
363
cPanel Access Level
Root Administrator
Hey there! I couldn't find much on this so I did some research and it doesn't seem like this is possible without some serious work. You'd need a proxy in place to catch the original requests and log those before Apache handles it, and it's beyond the scope of cPanel tools. I'm a firm believer of "anything is possible" but I don't have anything ready-made that will handle this well, and it looks like Apache doesn't either.
 
  • Like
Reactions: MohammadNehme