Results 1 to 5 of 5
-
12-25-2009, 03:39 AM #1Newbie
- Join Date
- Nov 2009
- Posts
- 24
How to move entire site except a few pages with htaccess
I know how to move entire site using htaccess
Code:Redirect 301 / http://www.example.com/
I have
page1.html
page2.html
page3.html
page4.html
page5.html
How to exluce those pages?
-
12-25-2009, 04:20 AM #2Web Hosting Master
- Join Date
- Jul 2009
- Posts
- 1,568
If you redirect / to a different website in .htaccess, everything will redirect. Instead you can set a redirect in the index of your website so people accessing your website will be redirected to http://www.example.com/ but then all the websites of your website can be directly accessed using http://yourdomain.com/pagename including
page1.html
page2.html
page3.html
page4.html
page5.html
BTW, you can set the redirection in your index file using the following code:
<meta http-equiv="Refresh" content="1; url=http://www.example.com/">| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux
-
12-25-2009, 09:45 AM #3Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
12-25-2009, 07:47 PM #4Junior Guru Wannabe
- Join Date
- Mar 2006
- Posts
- 55
Here's a *great* htaccess guide I routinely refer to.
http://perishablepress.com/press/200...access-tricks/
-
12-27-2009, 06:18 AM #5Newbie
- Join Date
- Nov 2009
- Posts
- 24
Thank you very much all
Similar Threads
-
htaccess redirect for entire directory
By AmeriWeb Hosting in forum Programming DiscussionReplies: 8Last Post: 10-05-2009, 02:18 PM -
htaccess redirect site pages...
By acctman in forum Hosting Security and TechnologyReplies: 3Last Post: 04-25-2009, 02:21 PM -
My Entire Portfolio and Must Move Prices! ($5++)
By CrazyTech in forum Domain Name OffersReplies: 10Last Post: 11-02-2005, 11:56 AM -
send users to different pages with htaccess
By bazzo in forum Programming DiscussionReplies: 4Last Post: 06-12-2004, 12:18 PM -
How to download an entire site? (images, pages, everything)
By stupid99 in forum Running a Web Hosting BusinessReplies: 7Last Post: 03-31-2002, 10:22 PM