Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
Configuring Apache .htaccess Main directory
0
like
0
dislike
21
views
There is a folder with a PHP project.
The structure is this:
How to fill out .htaccess if Apache has processed the request
domain.name/test/
so that it passed control to the script /entries/test
Accordingly, the root servers should be addressed to /entries/index.php
htaccess
asked
Mar 20, 2019
by
ayurganov
|
21
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
3
Answers
0
like
0
dislike
Try this:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/entries
RewriteRule (.*) /entries/$1 [L]
answered
Mar 22, 2019
by
Nodge
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Don't know if this is correct, but I would like something made
RewriteRule ^([^/]*)?$ /entries/test$1 [NC] [L]
answered
Mar 22, 2019
by
mihavxc
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Alias /test "/path/to/site_root_directory/entries/test"
answered
Mar 22, 2019
by
Mithgol
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
1
answer
Apache, Nginx, Cloudflare is not working .htaccess as it is necessary for the IP, what to do?
asked
Jun 11, 2019
by
wtfowned
nginx
apache
htaccess
0
like
0
dislike
1
answer
Wordpress + Yii 2 on the same domain. How to organize the routing apache (.htaccess)?
asked
Jun 4, 2019
by
SidorKovpak
yii
apache
htaccess
0
like
0
dislike
1
answer
ERR_TOO_MANY_REDIRECTS htaccess on apache. How to fix?
asked
May 2, 2019
by
dmitrybascacov
apache
htaccess
0
like
0
dislike
2
answers
How to use .htaccess and the Apache configuration file, namely Server Alias *test.ru to make subdomains?
asked
Apr 5, 2019
by
art_gur
php
apache
htaccess
0
like
0
dislike
1
answer
How to implement the Apache configuration you are using .htaccess?
asked
Apr 1, 2019
by
amstr1k
apache
htaccess
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooŃommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,187
answers
0
comments
40,796
users