You could also spider all the URLs in the old site, write a little PHP
handler (PHP seems to be there for one of the sites) and write your own
dispatcher. known URL go this way, new URL go that way.

This makes you more independent on what they run and what crazy stuff they
come up with next. also writing complex dispatch tables in mod_rewrite will
slow down Apache and will make you age a lot faster :)

cheers
Lenz


On Wed, Aug 20, 2014 at 8:47 AM, David Neilsen <[email protected]> wrote:

> Also note there is mod_proxy_html that can handle changing URLs, but it
> seems unlikely that Apache would be used on a non PHP setup.
>
> http://httpd.apache.org/docs/current/mod/mod_proxy_html.html
>
> And if the site did not require anything dynamic you could with wget to
> create a static copy:
>
> wget --recursive --no-clobber --page-requisites --html-extension
> --convert-links --restrict-file-names=windows --exclude-directories='/auth'
> --domains www.currentwebsite.co.nz http:// <http://www.inghamdriven.com/>
> www.currentwebsite.co.nz/
>
> http://www.linuxjournal.com/content/downloading-entire-web-site-wget
>
>
>
> On 20 August 2014 14:09, Thom Toogood <[email protected]> wrote:
>
>> If it's an apache server you should be able to do this with
>> either mod_proxy or mod_rewrite.
>>
>> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
>> http://httpd.apache.org/docs/current/mod/mod_rewrite.html
>>
>>
>>
>> On 20 August 2014 10:43, Mike Little <[email protected]> wrote:
>>
>>> Thanks David. Yes it may be a case of doing this. Unfortunately we will
>>> not know till Friday what type of server they are running.
>>>
>>>
>>> On Wednesday, August 20, 2014 12:22:34 PM UTC+12, David Neilsen wrote:
>>>
>>>> Depending on how the internal links a rendered in the current website,
>>>> it may be as simple as setting a proxy on the sub directory. If they are
>>>> all relative links then it should be fine. Otherwise it would require
>>>> something in the middle to rewrite the URLs.
>>>>
>>>>
>>>> On 20 August 2014 12:18, Mike Little <[email protected]> wrote:
>>>>
>>>>>  Bit of an interesting one...
>>>>>
>>>>> Client requires their current website (PHP) www.currentwebsite.co.nz
>>>>> to now reside under a subfolder of their new website
>>>>> www.newwebsite.co.nz/current (non PHP)
>>>>>
>>>>> And ... maintain the url of the new site when browsing the old site
>>>>> eg. it does not simply redirect.
>>>>>
>>>>> Confused? So am I!
>>>>>
>>>>> Anyone had to do anything similar? At this stage, we have no idea if
>>>>> the new server can include PHP (it is quite a large organisation and I
>>>>> would say their will be politics involved).
>>>>>
>>>>> --
>>>>> --
>>>>> NZ PHP Users Group: http://groups.google.com/group/nzphpug
>>>>> To post, send email to [email protected]
>>>>>
>>>>> To unsubscribe, send email to
>>>>> [email protected]
>>>>>
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "NZ PHP Users Group" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>> --
>>> NZ PHP Users Group: http://groups.google.com/group/nzphpug
>>> To post, send email to [email protected]
>>> To unsubscribe, send email to
>>> [email protected]
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "NZ PHP Users Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Thom Toogood
>> about.me/thomtoogood
>> [image: Thom Toogood on about.me]
>>    <http://about.me/thomtoogood>
>>
>> --
>> --
>> NZ PHP Users Group: http://groups.google.com/group/nzphpug
>> To post, send email to [email protected]
>> To unsubscribe, send email to
>> [email protected]
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "NZ PHP Users Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
> ---
> You received this message because you are subscribed to the Google Groups
> "NZ PHP Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--- 
You received this message because you are subscribed to the Google Groups "NZ 
PHP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to