En cours

159184 htaccess file for apache

I need apache 1.33 and 2.0 htaccess file, which would do the following:

-if requested file1 or file2...

-check if set cookie1

-if set, redirect to url1/url2 (for file1/file2 respectively) (**)

-end

-check if set cookie2

-if set, return requested file and do nothing more

-end

-check if user IP belongs to IP range(*)

-if it is, show otherfile1 or otherfile2 (**) instead. URL stays the same

-end

-check for word "domain" in referring domain

-if it match, then check for word1/word2 in referer (for file1/file2 respectively) (**)

-if it match, set cookie1

-and redirect to url1/url2

-end

-if none of the above match, set cookie2, return requested file,

-end

(*) I will provide networks list in format, suitable for php regex ("192\.168", "10\.4\.","192\.168\.7")

(**) There will be no nubmers in actual file names, they will be more like

asd.html->[url removed, login to view]

qgy.html->[url removed, login to view]

jgdf.html->[url removed, login to view]

RewriteMap, maybe?

Compétences : Tout va bien, HTML, PHP, Administration Système, Sécurité Web, Design de site internet

en voir plus : regex match list, regex is, regex in c, referer url php, 192 168.1.1, regex &, file2, Regex, php regex, htaccess, php regex html, htaccess apache, return file, html regex, regex php, apache redirect domain, php htaccess, apache htaccess redirect, check file format, check file

Concernant l'employeur :
( 1 commentaire )

Nº du projet : #1905373