Need help in changing URL on workers proxy

HI dear,

I need simple help in changing the URL path onto the workers’ reserve proxy. I m not good at coding. The reserve proxy can change URL with several site but it’s not changing URLs with the pages using html.

Here is my simple reserve proxy code

addEventListener(“fetch”, event => {
let url = new URL(event.request.url);
url.hostname = “”; //change this
let request = new Request(url, event.request);
fetch(request, {
headers: {
‘Referer’: ‘’, //and this for referer
‘User-Agent’: ‘Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36’ //change this with your UA
async function handleRequest(event, url) {
// Change URL from public URL to use the origin URL
var originUrl = url.toString().replace(
‘https://’ + DOMAIN + ‘/’ + PROXYPATH,
‘https://’ + ORIGIN

Please check my worker:

This one with the forum and it’s not hiding the original URL like

on other simple bootstrap sites, it’s working fine

My other worker Reddit Soccer Streams | Soccer Streams | The Original SoccerStreams

all the URL changes that are not using.html extension.

I am using the same code for both.

Please suggest to me how do I force reserve proxy to change all the URLs and with PHP, Html, and images.

Another question can i use google adsense on to the worker reserve proxy.