On Sun, Aug 05, 2007 at 01:17:18PM -0400, [EMAIL PROTECTED] wrote: > Hey everyone. > I have a little problem I hope someone can help me solve. > Simply put, the majority of my website is based on pmwiki, but because > of the subdirectories involved, is found at this address: > > http://vinylagain.com/pmwiki/pmwiki/pmwiki.php > > Meanwhile, I have a simple "welcome" page that welcomes users to the > site and lets them manually redirect themselves to the wiki, which > lives here: > > http://www.vinylagain.com > > I've been trying to write an .htaccess file for my root directory to > redirect users to the longer wiki url, but nothing seems to work.
I must admit I solved that problem for one of my sites in a simpler way. Rather than using .htaccess, I made an "index.cgi" which redirected people to the wiki. As follows: ----------------------------------------------------- #!/bin/bash # Redirect users to the Wiki cat <<EOF Status: 302 Relocate status Location: /wiki/ Content-type: text/html <html> <head> <title>Moved Home Page</title> </head> <body> <h1>We've Moved</h1> <p><a href="/wiki/">Main Page</a>.</p> </body> </html> EOF ----------------------------------------------------- > 2. Is it even possible to redirect users to the wiki? Would the fact > that the wiki is run from php scripts affect its redirect? Basically, > can one only redirect to .html pages, or .php scripts, too? Further, > could I leave the new address as above (/pmwiki.php) or do I need to > specify a page within the wiki (/pmwiki.php?n=Main.HomePage)? I use CleanUrls also, so I just redirected to /wiki/. Kathryn Andersen -- _--_|\ | Kathryn Andersen <http://www.katspace.com> / \ | \_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/> v | ------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
