Timeline for Is there a "current directory" variable in .htaccess RewriteRule?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2020 at 21:25 | vote | accept | Petr Hudeček | ||
Mar 20, 2014 at 16:33 | answer | added | closetnoc | timeline score: 1 | |
Mar 20, 2014 at 16:10 | comment | added | Petr Hudeček | "Redirect everyone trying to access something not in /preview/public to /preview/forbidden.php". That is, I want to bar access to everything else. My problem is that I don't want to have the word 'preview' in the .htaccess file so I can easily copy the whole application (including .htaccess) file to other folders. | |
Mar 20, 2014 at 15:49 | comment | added | closetnoc | I started to answer your question then I became confused as to what the problem is that you are trying to solve with the regular expression. As well, the .htaccess file is a hidden so that Apache cannot serve it. You would have to be logged in and have privileges to see the file. Could you make it clearer what problem you are trying to solve with the regex? I am sure there is a simple answer for you. | |
Mar 20, 2014 at 15:47 | review | First posts | |||
Mar 20, 2014 at 15:49 | |||||
Mar 20, 2014 at 15:30 | history | asked | Petr Hudeček | CC BY-SA 3.0 |