[FM Discuss] need some php help

adam adam at xs4all.nl
Sun Feb 20 04:11:03 PST 2011


On Sat, 2011-02-19 at 18:57 +0100, Luka Frelih wrote:
> any good reason why this could not be automated,
> at least to the point of producing a redirect config for all the site?


i was worried about having a script open for anyone to use that writes
directly to a htacess file...


if there is a nice secure way to automate it this would be preferable

adam


> 
> 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
> >
> >
> >
> >
> >
> >
> >
> >
> >    
> 
> _______________________________________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net





More information about the Discuss mailing list