OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to Redirect a Directory, its Files & Subdirectories to Another using htaccess

  • Thread starter Thread starter Mehdi Nazari
  • Start date Start date
M

Mehdi Nazari

Guest
I need to redirect whole directory to another For example, all of bellow addresses must be redirected:

Code:
http://test.com/en/file1.php
http://test.com/en/file2.php
http://test.com/en/subdirectory

To:

Code:
http://test.com/fa/file1.php
http://test.com/fa/file2.php
http://test.com/fa/subdirectory

How can i do this inside htaccess?
<p>I need to redirect whole directory to another
For example, all of bellow addresses must be redirected:</p>
<pre><code>http://test.com/en/file1.php
</code></pre>
<p>To:</p>
<pre><code>http://test.com/fa/file1.php
</code></pre>
<p>How can i do this inside htaccess?</p>
Continue reading...
 

Latest posts

M
Replies
0
Views
1
Mohit Pant
M
Top