Welcome to HostingForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

.htaccess and redirect

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Is it possible for my local webs to be roots?  
Author Message
pippo

External


Since: Feb 23, 2008
Posts: 1



(Msg. 1) Posted: Sat Feb 23, 2008 7:22 am
Post subject: .htaccess and redirect
Archived from groups: alt>apache>configuration (more info?)

I must redirect all traffic from directory1 to directory2 with
RewriteRule
but thid don't work:

RewriteRule ^directory1/(.*) /directory2/

Can you help me?

thanks

 >> Stay informed about: .htaccess and redirect 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Sat Feb 23, 2008 1:04 pm
Post subject: Re: .htaccess and redirect [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: .htaccess and redirect 
Back to top
Login to vote
Luuk

External


Since: Feb 09, 2008
Posts: 9



(Msg. 3) Posted: Sat Feb 23, 2008 1:04 pm
Post subject: Re: .htaccess and redirect [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

pippo schreef:
> I must redirect all traffic from directory1 to directory2 with
> RewriteRule
> but thid don't work:
>
> RewriteRule ^directory1/(.*) /directory2/
>
> Can you help me?
>
> thanks


try:
RewriteEngine On
RewriteRule ^directory1/(.*) /directory2/

--
Luuk
 >> Stay informed about: .htaccess and redirect 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
.htaccess redirect - Is it possible to do something similar to this ... redirect http://www.widget.com/index.html http://www.newwidget.com/index.html If not, an alternative idea? Thanks

htaccess redirect - Hi All I've scoured the net looking for an htaccess file with no luck. I'm really hoping someone will be able to assist me with this. I have a domain that was recently registered. It has a ton of links from other websites to subdomains on my domain. ...

.htaccess redirect - Is there away to do this: If someone comes with yourdomain.com and have a redirect in your ..htaccess to redirect to www.yourdomain.com? Thanks.

htaccess redirect - Hi everyone, I have been bashing my head to solve this. I am not very good at htaccess. :( There is 2 different domains, www.example1.net and www.example2.com. I want to redirect a new domain to a folder on the original domain. e.g. www.example1.net....

specific redirect in .htaccess - Hello, I was wondering if it is possible to say in the .htaccess only if someone tries to call upon test1.htm to redirect him to test2.htm. The reason i want to do that is because I recently replaced my old website but the search engine still shows link...
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]