|
If you control the web server and it is Apache, you should be able to do this with the mod_rewrite configuration directive. http://httpd.apache.org/docs/mod/mod_rewrite.html http://httpd.apache.org/docs/misc/rewriteguide.html On Fri, 20 Aug 2004 11:17:16 -0500, Mike Wills <koldark@xxxxxxxxx> wrote: > This isn't directly related to iSeries, but maybe someone can still help... > > As a bit of history, I run a MovableType blog. Recently, I have > decided to create the pages as PHP instead of HTML, then I can do some > cooler things with my site. Well, now I am getting tons of 404 errors > in my logs because of this move. So, I would like have have any URL > with ".html" to be sent to the exact same name, but with ".php" for > the extension. So for example: > > mydomain.com/mysite/mypage.html > > would come out as > > mydomain.com/mysite/mypage.php > > or > > mydomain.com/mypage.html --> mydomain.com/mypage.php > > I would like this to be a redirect so can clean up many of my 404 > errors I have been getting. I have been trying to look for examples > but haven't found any. > > Any ideas? > > -- > Mike Wills > iSeries Programmer/Lawson Administrator > koldark@xxxxxxxxx > http://www.koldark.net > Want Gmail? Email koldark+gmail@xxxxxxxxx to get on my waiting list. > _______________________________________________ > This is the Web Enabling the AS400 / iSeries (WEB400) mailing list > To post a message email: WEB400@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/web400 > or email: WEB400-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/web400. > > -- Tom Jedrzejewicz tomjedrz@xxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
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.