How to define expire headers in .htacces for images generated like this one:
phpThumb.php?src=/images/galleries/9e8959676e5a8e8937a2843f8d9989899d09bcee-----d8d738542c04367bf90d32f04e1cbceedb896a65-----.jpg&w=400&h=200&far=1&zc=1&q=99&sia=custom-filename
Thank You in advance!
I think that the best solution for me is here:
https://github.com/JamesHeinrich/phpThumb/pull/50/files
Related
By default, Pakyow has URLs like /authors/1.
How can I also/instead have URLs like /authors/s-kyle-newman?
With help from Bryan, I figured it out and put it in a blog post about pretty permalinks and canonical URLs. If you've stumbled on this answer, I hope it helps.
I wonder if i could change my URL from localhost/myproject/subject/1/ab-cd/tests into localhost/myproject/subject/ab-cd/tests (loss of id "1"). I want to hide the ID. Could it be done by using .htaccess?
Any helps will be appreciated.
Thanks you very much.
the question is not very clear enough to answer it properly. If id is being sent as GET request than it must be in the url....but you can still hide it:
by encryptring it in url
using sessions
by using AJAX
Hope so it helps
Basically I'm trying to figure out a way to make
http://www.mysite.com/check/google.com
show the contents of the page
http://www.mysite.com/check.php?site=test.com
and I want users to think that the actual URL is http://www.mysite.com/check/google.com instead of the long one.
But I need to do this in the friendliest way for Google so that they aren't looking at it as a redirect and it'll still rank well... Any help will be greatly appreciated if you can post some sample code... Thanks!
In the htaccess file in your document root, try adding:
RewriteEngine On
RewriteRule ^/?check/(.*)$ /check.php?site=$1 [L]
Question how do i rewrite
http://www.mywebsite.nl/support/department/index.php?/Ontruimingsvonnis/Knowledgebase/List/
to
http://www.mywebsite.nl/support/knowlegdebase/list
i have tried different ways to solve it but sofar no luck. Me and htaccess just aint friends.
Who will be able to help me out with this is need a 301 redirect for this one?
Could it also be that the index.php? would give a problem here?
Thanks in advance,
Paul
My Memory is a little hazy on this (its been a couple of years since i had to do this) but i believe mrewrite is what you need to use.
After a little digging, i found the page that might be helpful
http://www.workingwith.me.uk/articles/scripting/mod_rewrite
Need link, if it exist, to good and full .htaccess reference with examples.
Thanks.
How about the actual documentation for apache. httpd.apache.org howto htaccess.
http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html
http://httpd.apache.org/docs/2.0/howto/htaccess.html
You can do so many things with .htaccess file, that there are probably no comprehensive set of examples.