Mod_rewrite To Divert SOME Image Linking?
Mar 19, 2008
I'm trying to get a problem with image hotlinking under control. What I'd like is to allow linking to thumbnails but only allow the fullsize images to be served via another page.
What I'd like is to allow all request to /thumbs/(1-99)/*.jpg but redirect all calls to uploads/(1-99)/*.jpg to view_image.php while allowing all calls to any other existing php page on the site.
I thought it would be something like this but I've tried many variation on the standard denying hotlinking .htaccess scripts I've got and they work to a point but I can't seem to combine them to perform the above?
Can someone please put me out of my misery or point me to a good mod_rewrite tutorial!!!
RewriteCond %{REQUEST_FILENAME} uploads/(.*)/(.*).(gif|jpe?g|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^mysite.com$
RewriteRule (.*) /view_image.php?/$1 [R,NC,L]
View 4 Replies
ADVERTISEMENT
Oct 29, 2008
I have multiple dedicated servers all running cPanel and WHM they are all CentOS. Currently when a new client signs up we manually create the account after we have recieved payment.
We then manually bill each cycle.
I am looking at setting up an automated billing / sign up system but how does this work with all the sites spread over different servers?
View 9 Replies
View Related
Jan 28, 2009
If the user links to a different page and domain hosted by the same company is the browser experience quicker? If I have 2 webpages with 2 different hosts and wish to link them is there any meaningful slowdown for the user, to transfer to different pages with different hosts.
Do all the pages of a domain need to be hosted from the one host?
View 10 Replies
View Related
Feb 10, 2009
I am starting up a mail order bride website.
I already have a server in Malaysia that I am using to run an asain based site. Off a .asia domain.
I am currently in Malaysia just now and I noticed especially on the weekends the networks seem to slow alot in Malaysia due to everyone playing games at the Cyber Cafes (its what they do instead of pubs).
While back in home the UK the Internet seems super fast all the time due to are advanced infrustructure.
Now should I use my server in Malaysia (ultra cheap prices) to host the site so or get a server in Europe preferably America?
The pros i see for Malaysia is the potential brides in asia will get quick access to the site.
The pros for Europe or America is the customer base will get quick access.
I might be wrong about this, maybe the speed wont; be affected to much either way, but I am a newb
Also if i was to have both a server in America and one in Asia could I link them together under that same site name? and how would that work with the database?
View 6 Replies
View Related
Jun 2, 2008
I have noticed quite a few warez linking sites (some quite large) coming up that are hosted in Canada.
Does anyone know what the law is on warez linking in Canada?
View 9 Replies
View Related
Jul 17, 2008
We have a portal which collect videos from all the video sharing sites such as Dailymotion, Veoh, YouTube,etc... No actual videos are hosted on our servers.
Recently, We got a letter from the lawyer of the copyright owner of some videos, stating that we are not allowed to link to these videos on our sites. If we dont remove those links they will take legal action on us.
So, my question is that can they actually sue us for linking to videos on youtube,dailymotion....?
The server is located in Chicago, if that makes any different?
As far as i know, if we dont store the actual copyright content on our servers then it is fine, at least with US law?
And i think they are just trying to scare us since there are like hundred of sites that doing the same thing and i see keeping doing it.
Part of the letter:
[url]
View 14 Replies
View Related
Dec 10, 2008
Any good recommanded dedicated server providers which allows Warez linking?
View 11 Replies
View Related
Jul 21, 2007
linking domains to folders. Im using webmin on a Debian server, and setting up the DNS and BIND isn't a problem, i can do that, but what if i want to link, lets say example.com to the folder hdoc/example/ , how would one do that?
At the moment when setting up the zones, they link to the main page.
View 0 Replies
View Related
Jan 16, 2014
I am running apache currently on my QNAP server, and have enabled webserver and LDAP. We have set up users on LDAP. I have created a landing page for access from the internet. I want to configure Apache to authenticate the users using LDAP before granting access to the landing directory.
I have started this with the apache configuration below: My apache config file -
Code:
LogLevel debug
CustomLog "logs/access_log" combined
ErrorLog "logs/error_log"
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
ServerName MyServer
LDAPTrustedMode NONE
LDAPVerifyServerCert Off
[Code] ....
When I access my page, I get the authentication prompt. But when I enter my LDAP login and password, I get thrown out of the system with the error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@NAS and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Looks like my apache configuration is a problem as I am able access my LDAP and everything with LDAP seems to be working fine except Apache configuration to authenticate against LDAP.
View 1 Replies
View Related
May 26, 2009
BEST RELIABLE HOSTING, affordable hosting
ALLOWED: warez linking - nulled script - legal porn
warez linking allowed
nulled script allowed
Host Unlimited Domains
Unlimited Sub Domains
Unlimited Email, MySQL, FTP
PHP5, MySQL5, CGI, Perl5
DDOS Proof, ionCube, Ruby
99.99% Uptime Guarantee
cPanel® 11, WHM, Fantastico
Web Hosting Control Panel
MS Frontpage WebSite Hosting
ImageMagick 5.5.2 Support
Unlimited Email and FTP Accounts
Fast, Free 24/7 Tech Suppor
Reseller Hosting Available
2 Web Based E-Mail Programs
Streaming Audio/Video Hosting
SUPER 12$ year
5 Go Storage
30 Gb Transfer
Control Panel
EXPERT 24$/year
20 Gb Storage
100 Gb Transfer
EXPERT 36$/year
50 Gb Storage
600 Gb Transfer
GOLD HOSTING
»FREE DOMAIN NAME
» 100 Gb Disk Space
» Unlimited Bandwidth
50 $/YEAR
RESELLER HOSTING
w w w .azhosty .com
View 0 Replies
View Related
Jun 12, 2009
I've just moved a few webistes from Linux to Windows and I'm using IIS to run them. Does anybody know of any free alternatives to ISAPI_REWRITE so I can use mod_rewrite per account?
View 8 Replies
View Related
Oct 2, 2007
Its October and I have a Server at home with me running NO CONTROL PANEL... I have been using it for 5 years now... But my problem is my mod_rewrite is not working... I have tried fixing it... But I can't find it in the httpd.conf file where I heard it was at... They said it came by default by Apache..
I'm running Apache2.2.4, Fedora Core 7), PHP 5, MySQL 5.... I don't see the mod_rewrite on there....
View 14 Replies
View Related
Dec 15, 2005
I have a list of categories that i want to rewrite the URL to display the names instead.
I'm using this:
RewriteMap catlist txt:C:/web/apache2/htdocs/catnames.txt
RewriteRule ^/cats/(.*)$ /categories.php?catid=${catlist:$1|0}
catnames.txt consists of
CategoryName 6
AnotherCatName 8
OnemoreCatName 9
.....
and so on.
This works fine on my local windows PC since i'm using httpd.conf to set this up.
When i use this on my server under .htaccess, the error log says "RewriteMap" not allowed here.
I it only to find out that i cant use RewriteMap under .htaccess... Is there any other alternative to achieve this without listing all the category names with corresponding rewriteurl statements in my .htaccess file?
View 14 Replies
View Related
Sep 8, 2005
I have installed a Apache server version 1.3.33 on windows XP and would like to enable mod_rewrite so i can rewrite my ugly url´s. How do I install this great feature in Apache so i can test it locally?
Do i just remove # from
#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c
View 2 Replies
View Related
May 28, 2008
I've lots of:
[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
Any ideas how to track them?
View 5 Replies
View Related
Oct 24, 2009
does mod-rewrite consume ram?
actually found in new vb discussion of seo friendly urls and mod rewrite was an option for most friendly url, so wanted to know if constant usage of mod-rewrite adds additional load to the server or not?
forum which I and my friends use are pretty big more than 6k in a forum and other above 25k, with 250k posts in 1 forum and 600k posts in the other, so just give me an idea on wat can happen due to constant overwritten?
View 8 Replies
View Related
Mar 29, 2009
So I've setup a server heres the spec provided by Webmin
Operating systemUbuntu Linux 8.10
Webmin version1.470
Time on systemSun Mar 29 18:56:12 2009
Kernel and CPULinux 2.6.27-11-server on i686
System uptime5 days, 19 hours, 42 minutes
I'm struggling with mod_rewrite their seems to be no such thing...
Its not mentioned in the apache2.conf or httpd.conf, httpd.conf was blank previously but I added in certain things to get php working but I cannot get mod_rewrite working, which brings the question forward what else am i missing?
I started out with the aim of blocking the ability of viewing directories.
Quote:
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_setenvif mod_status mod_vhost_alias
So how can I go about getting mod_rewrite setup and/or what ever else I'm missing that I might find essential later on once I have everything setup?
View 4 Replies
View Related
May 15, 2009
I am struggling to get this .htaccess file to work with lighttpd, i am not a coder so its very hard for me to fix it, hopefully if someone knows how can tell me how to write rewrite code that will get it working.
{quote}
1. Comment the 2 lines below if the server returns 500 errors!
Options -Indexes
Options +FollowSymLinks
#Uncomment following lines if you want to use image caching!
#<IfModule mod_expires.c>
1. ExpiresActive On
2. ExpiresDefault A1209600
3. ExpiresByType text/html A1
#</IfModule>
1. Uncomment following lines if Apache doesnt support MultiViews!
<IfModule mod_rewrite.c>
RewriteEngine On
1. Uncomment the 2 lines below if you are using www.domain.com # as the baseurl for the site and users access your site # via domain.com (THIS IS REQUIRED FOR JQUERY TO WORK)
#RewriteCond %{HTTP_HOST} ^domain.com [NC]
#RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* loader.php [L,QSA]
</IfModule>
1. Edit below lines and set to
2. ErrorDocument CODE /RELATIVE/error.php
3. If the script is installed in the default document
4. root then relative is null.
#ErrorDocument 401 /error.php
#ErrorDocument 403 /error.php
#ErrorDocument 404 /error.php {/quote}
looks like its calling the rule from loader.php file, now how can i convert this to lighttpd language,
View 4 Replies
View Related
Oct 28, 2009
I have been using apache and php-cgi and it works well together but when I tried to use
mod_rewrite it stopped working and I got "Internal Server Error" result.
Apache error log showed "FastCGI: incomplete headers (0 bytes) received from server"
I think that mod_rewrite rules are ok because when I refer to some HTML file then it all works.
Apache 2.2.14 and php 5.2.11
View 5 Replies
View Related
Mar 23, 2008
I have a VPS and I need to enable mod_rewrite.
Here is my PHP Info: [url]
I read a tutorial but I just don't get it. I would appreciate if you could help me out.
I need it for my Wordpress blog.
View 14 Replies
View Related
May 28, 2008
I'm trying to redirect everything except the subdomains from an old domain to a new domain. The following appears to work so far:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^sub1.olddomain.com$ [NC]
RewriteCond %{HTTP_HOST} !^sub2.olddomain.com$ [NC]
RewriteCond %{HTTP_HOST} !^sub3.olddomain.com$ [NC]
RewriteCond %{HTTP_HOST} !^sub4.olddomain.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
But the subdomains also seem to be loading rather slow. Am I doing anything wrong here? Is there any way to optimise or simplify this (I have around 11 subdomains on the old domain)?
View 1 Replies
View Related
Aug 31, 2007
I am attempting to redirect any subdomain as follows:
subdomain(dot)domain(dot)com to
domain(dot)com/index.php?user=subdomain
I am having some issues doing this though. None of the samples online seem to work. Do I need a wildcard subdomain? Do I need to do anything to the dedicated linux server I am on? I have other sites on the same server all using mod_rewrite successfully.
Here is what I have so far:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^w{3}. [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).domain.com$ [NC]
RewriteRule ^.*$ /index.php?user=%1 [L]
Is there anything I am missing to get this thing working?
View 3 Replies
View Related
Aug 13, 2007
I had the sysadmin install SuPHP - so that my upload script would work properly, however now my mod_rewrite is broken.
You can view the problem here: [url]
It is supposed to show the item with id 29, as you can see. However it shows the gallery index (As if /gallery/ was typed in without the view-29)
The .htaccess file:
Code:
#.htaccess
RewriteEngine On
#This will force trailing slashes
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]
#RewriteCond %{REQUEST_URI} !^*(css|png|jpe?g|gif)
RewriteRule ^(.+)/(.+)/?$ $1.php?args=$2 [QSA,L]
RewriteRule ^(.+)$ $1.php [QSA,L,NC]
My very framework relies on the .htaccess working this way... I can turn it off, however I would really rather not - so if you have any idea how I can fix this, please do tell.
And on a related note, is it possible to run PHP under a user and not use cgi_php?
View 14 Replies
View Related
Aug 6, 2007
how can I run a equivalent on lighttpd like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
View 0 Replies
View Related
Apr 3, 2007
I've got a big .htaccess file which works brilliantly in mod_rewrite for apache. However, the client I want to use it for uses a windows server which is based on IIS.
Does anyone have experience with rewriting urls on IIS. Is it easy, could I easily change this:
RewriteCond %{REQUEST_URI} !^/(.+).php$
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^/products.php$
RewriteCond %{REQUEST_URI} !^/special-offers.php$
RewriteCond %{REQUEST_URI} !^/best-sellers.php$
RewriteCond %{REQUEST_URI} !^/spares.php$
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/css/
RewriteCond %{REQUEST_URI} !^/components/
RewriteCond %{REQUEST_URI} !^/Special_Offers
RewriteCond %{REQUEST_URI} !^/Best_Sellers
RewriteCond %{REQUEST_URI} !^/Spares
RewriteRule ^([^/]+)/?$ products.php?show=cats&main_category=$1
Into something that would work. Someone mentioned using asp.net but I've never looked at this before, and can't afford to spend too long this.
Is there a quick/reliable solution (apart from switching webserver).
View 3 Replies
View Related
May 1, 2006
Hey guys... Not sure if this was posted yet, couldn't find anything on a first-glance search.
Netfirms has finally added mod_rewrite capabilities as well as better .htacces support! Now I'm completely happy. I was considering switching over to Dreamhost due to the fact that I've started running blog software and messy URLs = crap. Now there's no need. That was pretty much the only thing that was holding me back from a full endorsement, so if anyone's looking for a good cheap hosting plan, here's some of the stuff that I'm really happy about for $5 a month:
- quick, personal customer service (I think there's only 1 or 2 guys, and they always seem to be able to answer my questions on the spot)
- mod_rewrite
- .htaccess
- reliable clean FTP (no _vti files or other annoying folders like so many companies these days)
- good online knowledgebase
- nice online site stats viewer
- a bunch of other great stuff that I probably have forgotten about or don't use
- only $5!
Just thought I'd share in case the news hadn't spread yet. Not sure when they added it, but I noticed the "NEW" sticker today.
View 3 Replies
View Related
May 2, 2007
If I want to apply a rule if (Condition A and (Condition B OR Condition C)) is true, will the following work?
RewriteCond Condition A
RewriteCond Condition B [OR]
RewriteCond Condition C
Or will the following?
RewriteCond Condition B [OR]
RewriteCond Condition C
RewriteCond Condition A
Or neither? Or both?
View 2 Replies
View Related
Jul 14, 2009
I'm moving a framework over to a new server for a client and they're using IIS. Is there an IIS equivalent to the following two lines of mod_rewrite code from Apache?
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ pamwf.php?PAMWF_PATH_QUERY=$1 [L,QSA]
View 4 Replies
View Related
Jun 3, 2009
figure out an .htaccess rewrite rule?
I am trying to rewrite everything in the web root folder to use a /blog/ folder.
So for example, if someone goes to [url] then I need it to actually serve the file from [url]
(But not a redirect.. ideally the browser should still show [url]
Is this possible?
View 1 Replies
View Related