[FM Discuss] need some php help

Luka Frelih luka at ljudmila.org
Sat Feb 19 09:57:45 PST 2011


any good reason why this could not be automated,
at least to the point of producing a redirect config for all the site?

LF

On 17. 02. 2011 12:08, adam hyde wrote:
> hi,
>
> I want to start the new fm site next week but i have so much on i dont
> have enough time to prepare everything for it. the need is getting
> pressing.
>
> One of the issues is that I want to redirect urls so that the old links
> to chapters in current manuals still work. if we dont do this then all
> links that are out there in the www will turn up 404 since the chapter
> urls will be different.
>
> I need everyone that needs a old chapter url mapped onto a new url to be
> able to visit a form online and  enter the old url into a textfield ,
> then the corresponding new url into another textfield. then press
> 'submit'. at the end of each day or ondemand depending on how much time
> i have, i will remap it all manually in the htaccess files. if i can
> simply copy and paste an already formatted redirect command that would
> make it fast...
>
> is there anyone out there that can make a very simple php script to
> help? it needs to do this:
>
> have two fields:
> old url:
> new url:
>
> [submit]
>
> -----
> the php file then takes the last two parts of each path:
> oldurl = [manualname]/[oldchapter]
>
> and
>
> newurl = [manualname]/[newchapter]
>
>
> then does the following :
> writes a text file with the right redirect command (I can send anyone
> that wants this the syntax off list).
>
> *and* writes the request onto the form at the bottom so people can see
> which urls have already been requested to redirect
>
>
> anyone ok to help me with this?
>
> adam
>
>
>
>
>
>
>
>
>    




More information about the Discuss mailing list