DevHeads.net

Postings by Dorrian, William

How can I simplify this URL to just the hostname with rewrite rules?

So - I'm the administrator of a Java application which has a URL similar to the following:

<a href="https://test.thing.seabass.com/q3/app?service=external/EmployerPages:DudeLogin" title="https://test.thing.seabass.com/q3/app?service=external/EmployerPages:DudeLogin">https://test.thing.seabass.com/q3/app?service=external/EmployerPages:Dud...</a>

Can't have them change it, and there's no way to simplify.

I'd like to redirect the URL above to:

<a href="https://test.thing.seabass.com" title="https://test.thing.seabass.com">https://test.thing.seabass.com</a>

I've tried a few rewrite rules by trial and error, unsuccessfully.

I also attempted to use generators such as <a href="http://www.visiospark.com/mod-rewrite-rule-generator/" title="http://www.visiospark.com/mod-rewrite-rule-generator/">http://www.visiospark.com/mod-rewrite-rule-generator/</a> and <a href="https://www.generateit.net/mod-rewrite/index.php" title="https://www.generateit.net/mod-rewrite/index.php">https://www.generateit.net/mod-rewrite/index.php</a>.

Any thoughts?

Thanks in advance.