.htaccess redirect rules
.htaccess redirect rules
Use below mentioned .htaccess rules as per your requirment.
#// This allows you to redirect your entire website to any other domain
Redirect 301 / http://example.com
#// This allows you to redirect your entire website to any other domain
Redirect 302 / http://mt-example.com/
#// This allows you to redirect index.html to a specific subfolder
Redirect /index.html http://example.com/newdirectory/
#// Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html
#// Provide Specific Index Page (Set the default handler)
DirectoryIndex index.html
Hpe this will help you lot :)
Subscribe to:
Post Comments (Atom)
3 comments:
I need to redirect a domain to my new blog site, do i need to remove my index file or can i just add the
#// This allows you to redirect your entire website to any other domain
Redirect 301 / http://example.com
code in my .htaccess file?
It's for this page: http://koffieboonz.wordpress.com/2013/10/29/italiaanse-koffie/
Very Nice Blog, You are spreading very good information among us… Yes Web Hosting plays very important role in business world. And it is important to have the best hosting services.
Germany VPS Hosting
Nice blog
Thanks for your reach-out efforts. This is a great blog. Keep sharing. I am sure you don't want that your website visitor face any problem. So buy the bestUSA VPS hosting service for your website.
Post a Comment