|
|
|
Pages: [1]
|
 |
|
|
Author
|
Topic: .htaccess (Read 1693 times)
|
Daniel
Newbie

Posts: 9
|
 |
.htaccess
« on: November 30, 2007, 11:37:58 AM » |
|
|
|
|
|
|
Logged
|
|
|
|
Dynaweb
Yep
Administrator
Full Member
    
Gender: 
Posts: 111
HostNed Admin
|
Which server is your site on?
|
|
|
|
|
Logged
|
|
|
|
Daniel
Newbie

Posts: 9
|
Which server is your site on?
70.84.212.26
|
|
|
|
|
Logged
|
|
|
|
Dynaweb
Yep
Administrator
Full Member
    
Gender: 
Posts: 111
HostNed Admin
|
Mod_rewrite is active and functional on that server. Are the rules you have active axactly as you posted here or is that just a generic example?
|
|
|
|
|
Logged
|
|
|
|
Daniel
Newbie

Posts: 9
|
Mod_rewrite is active and functional on that server. Are the rules you have active axactly as you posted here or is that just a generic example?
Currently no, they are: RewriteEngine on Options -Indexes RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com$ [NC] RewriteRule .*\.(pdf)$ http://mydomain.com/imprimir/ [R,NC] But I prefer to have the ones I posted in my first post, because they are specific. They didn't work.
|
|
|
|
|
Logged
|
|
|
|
Daniel
Newbie

Posts: 9
|
Are the rules you have active axactly as you posted here or is that just a generic example?
the only difference is that I use the actual name of my domain.
|
|
|
|
|
Logged
|
|
|
|
shellnil
Newbie

Posts: 1
|
Hello,
I have checked the rules provided by you. Can I get the URL where you are getting error and the errors. Also I want to complete rules with real domain name so that I'll investigate the issue further.
Thank You.
|
|
|
|
|
Logged
|
|
|
|
Daniel
Newbie

Posts: 9
|
Yes, I guess there isn't any problem with publishing that information, the actual file is: RewriteEngine on Options -Indexes
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?neoparaiso.com/.*$ [NC] RewriteRule ejercicios-multiplicacion.pdf$ http://neoparaiso.com/imprimir/ejercicios-multiplicacion.html [R,L]
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?neoparaiso.com/.*$ [NC] RewriteRule tabla-romanos.pdf$ http://neoparaiso.com/imprimir/numeros-romanos.html [R,L]
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?neoparaiso.com/.*$ [NC] RewriteRule tablas-de-multiplicar.pdf$ http://neoparaiso.com/logo/tablas-de-multiplicar.html [R,L]
the problem is that, using those rules, when I type in the address bar of the browser something like: http://neoparaiso.com/logo/tablas-de-multiplicar.pdfThe browser downloads the pdf instead of redirecting to the http://neoparaiso.com/logo/tablas-de-multiplicar.html
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
|