![]() |
Setting up WOL for custom script
I'm trying to set up a WOL entry for a custom script. However the script is named index.php and in a directory above my forum root.
If I use: PHP Code:
|
That is going to be difficult to do. I think I saw a post that includes instructions on how to do it in the article about creating plugins for the WOL page, so go read through that.
|
Alright, well I suppose a better question would be, is there a way to set a script that isn't named index.php as default for a directory? Then I can ignore this WOL issue altogether. I just need it to be the default script.
|
If its apache: DirectoryIndex (Which you can modify in httpd.conf, simply add the file name, HUP apache.
You can do the same for Nginx as well. index index.html index.php /index.php; |
Quote:
I put "DirectoryIndex radio.php" in .htaccess for that directory. Is there something I can specify so that it will make the url appear as http://www.mysite.com/radio/radio.php ? |
Try This:
RewriteCond %{HTTP_HOST} ^example.com/radio/$ RewriteRule ^$ http://example.com/radio/radio.php [L,R=301] |
Thanks for the help, it is working now. :)
|
welcome
|
All times are GMT. The time now is 11:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|