I
I
Igor2016-03-23 20:20:11
PHP
Igor, 2016-03-23 20:20:11

How to configure htaccess for a specific directory?

How can he point to a special directory?
I just have wordpress in the root of the site,
and in the page_online directory another site
in page_online can I shove my htaccess individual?
linewire.ru/t/page_online/index.php?view=site/two
is done to remove this garbage
z8F4IJK.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim Shvetsov, 2016-03-23
@IgorBee

.htaccess in the case described below should be at the root.
mod_rewrite must be enabled in PHP
Add code to .htcaccess (you can change the path in RewriteRule)

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

If PHP is less than 5.2.6 then:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

C
centrin0, 2016-03-23
@centrin0

You can put your htaccess file in this special directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question