htaccess not working? Not being read? Fix!

htaccess not working? Not being read? Fix!

optikalefx

13 лет назад

22,904 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

kvykimo indelis
kvykimo indelis - 23.06.2019 15:56

my problem is that i cannot prevent access to any file, just the folder. whats up with that?

Ответить
Detlev
Detlev - 18.06.2019 03:12

Thanks so much for the vid. I had the allowoverride set in the vhost config file in sites-available, but apparently, that wasn't enough. Everything was in place except to specify the allowoverride delta (none > all) in apache2.conf!

Ответить
ocanica
ocanica - 23.06.2018 21:27

Awesome, I was having problems accessing .htaccess using XAMPP Virtual Hosts and this solved the issue.

Ответить
Daniel
Daniel - 28.07.2017 01:34

hi i am on windows (localhost) and i don't have 000-default.

Ответить
Nadia Yusof
Nadia Yusof - 27.03.2016 09:36

thank you so much. i have been stuck for days. this works! :)

Ответить
violinsheets
violinsheets - 27.03.2016 00:53

How do I do this on something like a GoDaddy server??

Ответить
Tharaka Abeyratne
Tharaka Abeyratne - 04.04.2015 20:10

Thanks a bunch.

Ответить
mario pochat
mario pochat - 10.11.2013 02:23

it works! my saviour!!  I don't understand what you did, I just follow all the steps.  I have no clue why this works.   Can you explain with apples and oranges?

Ответить
Kasper Alsøe
Kasper Alsøe - 08.11.2012 05:53

Thank you!, i changed from dev_site > live_site, and domain from dev.site.com > site.com, and it stopped working... 2min with your video, and everything worked like a charm! liked, subscriped and fav.

Ответить
evilcrackers
evilcrackers - 04.11.2012 20:30

what about if i want more .htaccess files to different directory's of root directory ?

Ответить
how2backtrack
how2backtrack - 02.03.2011 08:49

Thanks man! I had the same problem as you and your video saved me a lot of time of searching on forums! Thanks! :)

Ответить
optikalefx
optikalefx - 04.01.2011 18:59

@TECHNIXP you would use that to say, whatever rewrite rule to follow will NOT apply to files ending .css. Like routing all files to the index.php file. But you don't want to route js and css files, they need to be directly accessible.

Ответить
Marius
Marius - 04.01.2011 18:00

@optikalefxx thanks, that's great idea :) like all your ideas are as i see.. :)) so, how to understand "RewriteCond %{REQUEST_FILENAME} !(.*).css " why you use that htaccess? i think that it has to redirect user to index.php if he requests .css

Ответить
optikalefx
optikalefx - 04.01.2011 07:32

@TECHNIXP You can't do that with htaccess. js and css files have to be accessible for the browser to read them. The best you can do though, is gzip and compress them so that they are obfuscated. Coda has some cool plugins to do this.

Ответить
Marius
Marius - 04.01.2011 05:53

hey, your videos are amazing, but could you explain more about rewrite module? i cant get how to block access to js, css etc files without blocking access for browser to load page?

Ответить
optikalefx
optikalefx - 16.12.2010 16:47

@7715z It's called Transmit. Ok? Lol

Ответить
optikalefx
optikalefx - 10.12.2010 23:44

@tamiboy2 Thats for a client so I can't say. But normally I use Powweb for cheapo stuff, or limestone networks for dedicated boxes. I wanna try 1 & 1 hosting sometime, i hear they are great.

Ответить
optikalefx
optikalefx - 10.12.2010 23:22

@tamiboy2 Nah, its a hosted server.

Ответить
optikalefx
optikalefx - 10.12.2010 18:37

@cheatonly2win That's why I made the video. If something went wrong.

Ответить
optikalefx
optikalefx - 10.12.2010 17:54

@cheatonly2win They aren't aliased. Normally you alias the files in then and just edit inside of mods-available. I prefer to keep the original there

Ответить