Okay, so I have a website where the user can put a search query into a form that uses GET to send the data.
When it gets sent, the url looks like: /recipes.php?query=taco&ingredients=chili
And I would like to rewrite it to look like: /recipes-taco-Ichili.html
So I added the following line to my .htaccess file:
RewriteRule recipes\.php...
i just found a great blog posting on http://simonwillison.net/2009/Aug/26/logging/ stating the following
MongoDB is fantastic for logging".
Sounds tempting... high performance
inserts, JSON structured records and
capped collections if you only want to
keep the past X entries. If you care
about older historic data but still...
php -v gives this
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20060613
PHP compiled wi...
I need a rewriterule so if i type index.html i will show index.php
I mean i have files like, home.php, about.php and i want to be able to access them with .html too
Thanks in advance
...
Hello everyone
So, this page: http://utf8test.n.ceromedia.dk/ has some UTF8 Characters. They display correctly in Firefox, IE and Opera, but doesn't work in Chrome and Safari. Boxes appear instead.
I have and when I look at the headers: Content-Type: text/html; charset=utf-8
Can you see what's wrong? Is it something I do wrong, or is...
Hi!
I have an jQuery JSON request, that loads some JSON from another server (ex. foo.com):
$.getJSON("http://foo.com/json.php",function(data) { alert(data); });
But I receive data as null. This is not cross-domain issue, I tried following:
$.getJSON("http://twitter.com/users/usejquery.json?callback=?",
function(data) { alert(dat...
Hi,
I've implemented a simple .htaccess to rewrite any request on a particular directory.
It works to an extent. If you request with nothing after the trailing slash, then it redirects fine. If you put anything after the trailing slash, it is appended to the end of the URL you're trying to re-direct to.
For example,
You request: /...
Hi there,
I was using a .htaccess redirect 301 to redirect a URL which then appended all the query string elements to the end, leaving me with some URLs indexed in Google as /store/product/?d=department&s=section&p=product.
I have fixed the redirect by using a RewriteRule instead which doesn't append the query strings, however I'm stuc...
I'd like to get started with Pylons, to be used on a Windows machine as a local web server. Is there any equivalent of e.g. XAMPP for Pylons that would set up everything with one installer?
Edit: I've just discovered the Pylons web server. Could I use this to serve pages to computers on a LAN?
...
mod_authn_otp is an Apache web server module for two-factor authentication using one-time passwords (OTP) generated via the HOTP/OATH algorithm defined in RFC 4226. The developer's has listed only one compatible device (the Authenex's A-Key 3600) on their website. If a device is fully compliant with the standard, and it allows you to r...
I was using XAMPP for my local machine but as I wanted to run applications like mysql work bench and some test frameworks I decided to switch to LAMP self install. I'm using ubuntu and followed the instructions at: https://help.ubuntu.com/community/ApacheMySQLPHP
But the problem is LAMP is consuming too much of my memory (RAM) I've allo...
I'm setting up some simple url rewriting rules using mod_rewrite and a .htacces file, but I've got some problems.
If I set up the .htacces this way:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule /index.html /index.php [L]
when I call from the browser this url:
http://localhost/~dave/mySite/index.html
I got a 404...
I am using .htaccess file to redirect request to files. when i point my site using domain.com all the redirection works properly but when i point my site with www.domain.com it takes me to apache test page.
This is my htaccess file
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\...
Hi, I have mod_python installed on my server, but if I want to acceses a python script - let's say httü://site.com/something.py the script doesn't run, the download box "pops up"
Any solutions?
...
I'm trying to deploy a site generated with Jekyll and would like to keep the site in its own subfolder on my server to keep everything more organized.
Essentially, I'd like to use the contents of /jekyll as the root unless a file similarly named exists in the actual web root. So something like /jekyll/sample-page/ would show as http://w...
At the moment I'm trying to build some integration tests for an android project. I would like to use the same apache http classes I use on the android. Which version is this and can I get a jar of that somewhere?
Trying to use the jar that comes with android only resolves in Exceptions... But most of the tests won't need running them i...
I'm trying to authenticate to a web server from an android class with the org.apache.http.HttpClient.
How can I do this? The code for my connection is:
HttpClient httpClient = new DefaultHttpClient();
HttpGet httpGet = new HttpGet("url");
HttpResponse response = null;
try {
response = httpClient.execute(httpGet);
} catch (Client...
I am struggling with a very basic regex problem in my .htaccess file that I hope someone may be able to shed some light on. The basic premise is that I would like to teach Apache to switch any .html extension into a .var extension. I had thought that the rule would be positively trivial:
RewriteRule ^([^.]+)\.html$ $1.var
But the [^...
Say I don't have mod_deflate compiled into apache, and I don't feel like recompiling right now. What are the downsides to a manual approach, e.g. something like:
AddEncoding x-gzip .gz
RewriteCond %{HTTP_ACCEPT_ENCODING} gzip
RewriteRule ^/css/styles.css$ /css/styles.css.gz
(Note: I'm aware that the specifics of that RewriteCond need ...
I downloaded php_xdebug-2.0.5-5.3-vc9.dll, added at the end of PHP.ini the following line:
zend_extension_ts="C:/Program Files/php5/ext/php_xdebug-2.0.5-5.3-vc9.dll"
When I use phpinfo(), xdebug is not loaded.
When I run command "php.exe -m", it not loaded as well.
How can this be resolved?
My configuration: PHP 5.3.1, Apache 2.2...