Need help with this rewrite rule (htaccess)

Joined
Nov 11, 2022
Messages
2
Reaction score
0
Hi all, guys!

I need your help to write an important rewrite rule! I've been struggling with this code for a month. o_O

I need to redirect urls of this type:

/confindustria/verona/news.nsf/($linkacross)/879D9288439B4C42C12588E1004BD915?opendocument&restricttocategory=Credito%20Finanza%20Assicurazioni

to ones of this type:

gate/news/documento?openform&id=879D9288439B4C42C12588E1004BD915&restricttocategory=Credito%20Finanza%20Assicurazioni

You see that:

1)
domain changes
2) this static part changes
3) this dynamic part remains almost the same except for opendocument& that must disappear


Please help!
Thank you!

Roman.
 
Joined
Jul 12, 2020
Messages
89
Reaction score
9
I don't think you need to mess with the htaccess for this, you can use a simple php script and catch the referrer info and reroute it. Just plug the script into a global collection so it loads to every page on your site.
Note: Only reroute if the the referrer contains "/confindustria/verona/news.nsf" If so rewrite the incoming link and reroute it. Or allow use of the "file not found" error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,703
Messages
2,569,328
Members
44,612
Latest member
Billysak

Latest Threads

Top