Answer the question
In order to leave comments, you need to log in
How to redirect without changing the url?
Now the contents of the .htaccess file looks like this:
AddDefaultCharset windows-1251
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteBase /
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^products$ http://www.%{HTTP_HOST}/products [R=301,L]
RewriteCond %{HTTP_HOST} !^www\. (.*) [NC]
RewriteRule ^photos$ http://www.%{HTTP_HOST}/photos[R=301 ,L]
Now how to shove the non-pushable.
you want to change the url but not change it, and vice versa, which is kind of stupid.
But nevertheless, the substitution of files can be done without touching the site engine at all.
But this can be done in nginx in proxy mode. in this case, it will physically replace the folders, but the urls will not change.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question