1
Colleagues.
I have the following htaccess code that I direct:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?site.com.br$
RewriteCond %{REQUEST_URI} !^/novo/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /novo/$1
RewriteCond %{HTTP_HOST} ^(www.)?site.com.br$
RewriteRule ^(/)?$ novo/index.php [L]
But there are links that contain new/company.php and I would like the click to appear only php company. without having to change the links in the menus. You can do this in htaccess?
Hi Ricardo. I used the company.php page as an example, but if it’s just the directory, can I use it this way? redirect 301 /new/$1 http://www.seusite.com.br/$1
– user24136
Obrigado Ricardo.
– user24136