I am looking for a way to put a rewrite condition into my configuration where I can poll an external web page and based on the http status code, allow the rewrite or not.
I am doing this in order to set a maintenance status on two different proxy servers, one is apache the other is a big-ip. I already have the maintenance pages and control setup on the big-ip, but I need a way to poll a url and pull a specific http status code served up by the big-ip.
i have an image hosting and i am using curl for remote upload, everyday i am checking php error logs to see is there any bug in codes or no. today i found an unusual log!
Quote:
[28-Jul-2007 00:14:43] PHP Warning: curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: open_basedir restriction in effect. File(/home/marcelo/Desktop/abcdefg.jpg) is not within the allowed path(s): (/www/:/usr/lib/php:/usr/local/lib/php:/tmp) in /www/upload.php on line 26
why should curl show logs like this? my codes just accept URL for curl!
does curl accept real path instant of url ? or this is a php bug?
My existing web host has disabled shell_exec and one of my php scripts requires it to work, so is shell_exec dangerous? Would you have it enabled on your servers or is it typical for it to be disabled?
I want a user to type myUrl.com/JohnSmith and go to John Smith's homepage. His homepage is actually a dynamic page that is shared with all users which is myUrl.com/Shared.aspx?ID=1234. I have created a URL rewrite script which finds the folder specified (JohnSmith) and finds the user ID from the database. It then displays the Shared.aspx page for the proper ID.
This works on my local machine because it's using Visual Web Developer as the hosting engine so it executes ASP.NET for every page load. When I upload this to an online host using IIS it fails because there is no folder named JohnSmith. I get a 404 online where I would get the proper page on my machine.
I have tried to work with 3 hosts to make this happen and noone can get this to work. I really need to either know what to tell the host to change or find someone who knows how to do this. I am obviously willing to change hosts if that's what it takes.
Actually I am going to use phpprobid system and it has in built function for mod rewrite but I think it is for apache as if i turn it on I cant access pages
I'm facing some issues with hotlinking here. the htaccess do not work because users can still use their download manager to download the file without going to my site.
I've seen few sites that got tempoary url that changes every X times and that support download manager.
When someone types in myforum.com/forums.html I want it to display the main forum (myforum.com) with ...../forums.html in the url bar. But without actually having a forums.html file present on the server. Can this be accomplished with htaccess?
I'd like to use lighttpd on my server but it doesn't support url rewrites for wordpress. I have a VPS running on kloxo and i have 4 clients using WP2.71 with permalinks.
After searching i found something really nice: " Create a file called /etc/lighttpd/wp-rewrite.conf with the following contents:
I'm not even really sure if rewrite is what I need, but basically I have an alias/proxy setup on apache which points mysite.com/itunes/ to mysite2.com/pr/itunes/. My script php executes on the second server, so it assumes that the address should be mysite.com/pr/itunes/. I need to rewrite this to mysite.com/itunes. Here's my code:
RewriteEngine on RewriteBase / RewriteRule ^itunes/(.*).php$ pr/itunes/(.*).php
i'd like to use a code similar to the one below, to rewrite a sub directory to a subdomain. www.domain.com/aoa/info/ to info.domain.com and then error 301 if someone goes to www.domain.com/aoa/info/ directly