troubleshooting Question

.htaccess manipulation of a link? (From name: StringA to StringB

Avatar of Valleriani
VallerianiFlag for Sweden asked on
Web Languages and StandardsWeb DevelopmentPHPApache Web Server
10 Comments1 Solution414 ViewsLast Modified:

I have the following link, for example

Etc, very simple. What I want is .htaccess to make a certain word go to the same area. For example
would be the same as

.. There is a problem with just changing it because of the structure the files were created in,. 'campaignArea' is actually a value that represents a mySQL value it searches for, and it's used in 'several' files statically. The simple idea I had instead of having to adjust more then 100 files would be to make 'broadcastArea' go to the same location as campaignArea if its in the link.

The thing is, I don't want the 'name' to be different. I can obviously make broadcastArea redirect to campaignArea first, but I want it so that the user sees:

'' still, but the server would see

'' if that makes sense, which I hope .htaccess can actually do.

broadcastArea actually goes no where, but campaignArea would work, is the reason why, in a quick sense.

So to short form it, replace part of a string with another string, but the link should stay the same in the users browser, link manipulation/prettifying. Is this possible?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros