Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello.

can i use ".htaccess" file for redirecting and other thing in sharepoint 2010 site?

If Yes tell me how?

If Not Please Advice Me.

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 28-May-14 1:03am    
.htaccess? Are you using Apache with Sharepoint? How?
—SA
cawboy_iran 28-May-14 1:34am    
i need some thing like this...
not exactly .htaccess
Sergey Alexandrovich Kryukov 28-May-14 1:53am    
.htaccess is the Apache file, you cannot use it. You need to access what do you want to achieve. Read about URL routine, URL rewrite and redirection... Or do you need something else? To get more detail, please explain your ultimate purpose.
—SA
cawboy_iran 28-May-14 1:58am    
i have two domain with same content.
so i need use 301 redirect some one to another.
Also i want create custom 404 page not found and set it as default 404.
Sergey Alexandrovich Kryukov 28-May-14 2:03am    
So, this way, do you want the two domains to start serving non-identical content, to reuse some content of one in another one (error pages)?
—SA

1 solution

This file, .htaccess is the Apache file, but you probably use IIS. Your purpose is not quite clear, but try to start here:
http://support.microsoft.com/kb/2818415[^].

See also: http://en.wikipedia.org/wiki/Rewrite_engine[^].

[EDIT — after OP's clarification]

There is a lot of information on the Web on the redirection of the standard HTTP error pages (4xx, 5xx). For example:
http://sharepointsurfer.wordpress.com/2012/06/21/how-to-create-a-custom-error-page-on-sharepoint/[^].

You can do it using Web.config:
http://www.allthefixes.com/using-custom-error-pages-in-sharepoint-2010[^],
http://spmatt.wordpress.com/2012/02/06/custom-error-pages-in-sharepoint[^].

You can find a lot more information on the problem: http://bit.ly/1mokPhK[^]. :-)

—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900