senters Posted June 5, 2012 Report Share Posted June 5, 2012 labsvakars! kā ar .htaccess palīdzību uzrakstīt, lai ierakstot urlī lapa.lv/template/intro-events.php tiktu redirektēts uz lapa.lv? šajā failā atrodas json masīvs, kurš tiek pasaukts citā vieta un "ejot pa taisno", urlī padodot ceļu uz failu, tiek rādīts "null". pašas direktorijas nevar nolistot, rakstot lapa.lv/template/ tiek parādīts 403 error. Quote Link to comment Share on other sites More sharing options...
rpr Posted June 6, 2012 Report Share Posted June 6, 2012 pielaago savaam vajadziibaam: RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} !.post\.php* RewriteCond %{HTTP_REFERER} !.*example\.com.* RewriteRule (.*) / [R,L] Quote Link to comment Share on other sites More sharing options...
senters Posted June 6, 2012 Author Report Share Posted June 6, 2012 bet vai šis "!.post\.php*" nenozīmēs, visus urlī padotos linkus ar paplašinājumu .php redirektēt uz example.com? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.