Results 1 to 2 of 2
Thread: Regarding HTACCESS
-
08-22-2009, 11:22 AM #1Junior Guru
- Join Date
- Aug 2007
- Posts
- 193
Regarding HTACCESS
I had some files on one server which i shifted on another server (which has another url)
Now i want the whenever a person requests a specific file (which has now moved to the new domain) he auto gets redirected to the new domain..
Say the old url was
http://www.aaa.com/files/1/2/3/file.xyz
and the new url is
http://www.bbb.com/files/1/2/3/file.xyz
The prob is in the folder files there are 10 folder 1,2,3...10
I have shifted only 1-8 folders to the new one and want only those request to be redirected..
-
08-22-2009, 12:11 PM #2Web Hosting Master
- Join Date
- May 2006
- Location
- EU & USA
- Posts
- 3,684
seems you just need some htaccess rewrite rules.
might want to check this for some information about rewrite rules: http://www.askapache.com/htaccess/mo...nd-tricks.html
You may need to do this for each folder 1 to 8 and skip the ones you didnt move.
Similar Threads
-
some .htaccess help?
By kpmedia in forum Hosting Security and TechnologyReplies: 3Last Post: 03-10-2008, 07:20 PM -
.htaccess
By NameSniper in forum Hosting Security and TechnologyReplies: 3Last Post: 05-30-2006, 10:03 AM -
[htaccess] allow from
By sernate in forum Hosting Security and TechnologyReplies: 11Last Post: 12-13-2004, 11:17 AM -
where should the htaccess be
By dapproid in forum Hosting Security and TechnologyReplies: 3Last Post: 08-08-2002, 10:34 AM -
.htaccess
By Studio64 in forum Web HostingReplies: 7Last Post: 01-06-2002, 12:35 PM