here I have this new domain: “naimi.ir”
in the root I have an “index.html” file and I want to redirect all of these addresses
- Code: Select all
www.naimi.ir
www.naimi.ir/index.html
naimi.ir/index.html
naimi.ir
to
- Code: Select all
www.naimi.ir
in the root I have another “html” files like “art-gallery.html” , “design.html” etc
and for example I want to redirect these addresses :
- Code: Select all
naimi.ir/art-gallery.html
www.naimi.ir/art-gallery.html
to
- Code: Select all
www.naimi.ir/art-gallery.html
and another addresses like above example
would you please help me to have a right .htaccess file and redirect all addresses ?
i have a folder named “blog” and it I have installed a cms in this folder
the main page of this cms is “naimi.ir/blog/index.php” and it has another pages like
naimi.ir/blog/xxx or naimi.ir/categories/xxx/xxx
I want redirect these addresse
- Code: Select all
naimi.ir/blog/index.php
www.naimi.ir/blog/index.php
to
- Code: Select all
www.naimi.ir/blog/index.php
and all other pages like
- Code: Select all
www.naimi.ir/blog/xxx
and
naimi/ir/blog/xxx
or
www.naimi.ir/blog/catagories/xxx/xxx
and
naimi.ir/blog/catagories/xxx/xxx
to
- Code: Select all
www.naimi.ir/blog/xxx
www.naimi.ir/blog/catagories/xxx/xxx
is this code in the root’s .htaccess file a correct code?
- Code: Select all
RewriteRule ^blog/?$ http://www.naimi.ir/blog/index.php [R=301,L]
or I need another code?
thanks a lot