Well, you should always use relative links and references (to images, JS,
etc) unless it's outside the domain of your site. You must not have read
my eRPG books. :)

Anyhow, you could easily load up all your CGI programs, templates, static
HTML, etc in something like Notepad ++ and do a simple find/replace on all
of them from http://www.xyz.com/link... to /lnk... to fix that problem.
Notepad can do that to all open documents at one time, as can other text
editors.

Don't try to use apache redirects to fix that problem. And don't simply
replace www.xyz.com with abc.xyz.com or you'll run into that problem
again. You'll just be stacking bandaids a mile high.

https://blogs.msdn.microsoft.com/xweb/2010/04/26/different-types-of-hyperlinks/


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #13 <https://www.bvstools.com/mailtool.html>: The ability
to use an IFS stream file as the body of the email (either text or html).

On Mon, Dec 9, 2019 at 6:18 PM midrange <franz9000@xxxxxxxxx> wrote:

Bradley,

What I am missing here is my cgi programs, over a hundred, are calculating
url strings that all use "abc.com" in the url, and the network tech says I
need to alter it to "xyz.abc.com" - I've read enough of Apache that the
RewriteEngine can do stuff like that - so that any url would insert the
"xyz." In the right place. Unfortunately no two solutions look the same.
I was looking for some confirmation about how something like that would
work
on Power i - and especially, where it goes in the .conf file (or
.htaccess?)
- everyone's examples on the web so far are linux or Win, or especially
WordPress which has an admin, all short little clips with not quite enough
info. Plus have no test system.
Jim


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of B
Stone
Sent: Monday, December 09, 2019 7:49 AM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx

Subject: Re: [WEB400] change i hosted domain to a subdomain

Why would you redirect from one server to another use a landing page when
you could just redirect to a new public IP on the DNS side of things?

As I said your network guy should know how to do that. Then just have him
send xyz.abc.com to your IBM i and it's pretty simple. No need for extra
links in the chain, especially port 80 which is rarely used for internet
based web sites any more.

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #5 <https://www.bvstools.com/mailtool.html>: Easy setup!
No confusing or obscure setup instructions, directory entries, SMTP users,
aliases or host tables. All you need is TCPIP, a connection to the internet
and you're done!

On Sun, Dec 8, 2019 at 3:54 PM Booth Martin <booth@xxxxxxxxxxxx> wrote:

I believe you are administering the Apache server(s) with port :2001?
And further, that port :80 (the default) is your normal landing page
for www.xyz.com?

If so perhaps this scenario will get you home:

* Create a new generic landing page and a new landing page server for
port :80.
* Change the www. server to another port.
* Establish the new server abc.xyz.com at a new port.
* On your landing page server setup redirect www.xyz.com and
abc.xyz.com to their new port assignments.

With that scenario I believe when users enter they will get:

xyz.com = generic landing page (a model for you to consider would be
the Zend landing page at port :2004)

abc.xyz.com = abc.xyz.com

www.xyz.com = www.xyz.com


On 12/8/2019 2:25 PM, midrange wrote:
Have an old site likehttp://www.xyz.com and is only site in Apache
conf
on i
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please
take a moment to review the archives at
https://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please take a
moment to review the archives at https://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.