Answer the question
In order to leave comments, you need to log in
MOD_REWRITE, how to write a redirect to another folder?
Let's say I have a website, http://site/
but the folder with html files is located at http://site/view
How to make it so that when a person visits http://site/
, he displays an index file with http://site/view
Well, or also, let's say I askhttp://site/portfolio.html
and the file is loaded from http://site/view/portfolio.html
Not a regular redirect, it's not interesting to look at the address bar on http://site/view/portfolio.html
, I want of course http://site/portfolio.html
:)
Tell me?
If you do this: RewriteRule ^(.*\.css)$ view/$1 [R=permanent]
Then he rerolls on
http://site/view/view/view/view/view/view/view/view/view/view/view/view/view/view/view/view/view/view/css/style.css
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question