Forum Index Search Forum Register Log in

Current

7.0 Production
build 6 Mar '07


7.1 Beta 5
build 7 Oct '07



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.

htaccess redirects

 
Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
View previous topic :: View next topic  
Author Message
holziusa



Joined: 08 Jun 2004
Posts: 221
Location: thanks4yourfeedback, donate to this site!!

PostPosted: Wed 15 Dec '04 1:53    Post subject: htaccess redirects Reply with quote

RedirectMatch [permanent | temp | gone] <regex-match> <url>

Redirect all requests that match the regular-expression (<regex-match>) to the URL specified. For example:
RedirectMatch permanent (.*)\.gif$ /moved.html
RedirectMatch permanent (.*)\.exe$ http://www.microsoft.com/

wanted to redirect to another site via htaccess
have this in htaccess file...........

"RedirectMatch permanent * http://www.newsite.com/neo"


unable to formulate a working script in .htaccess
would some one check this please and maybe provide a working sample. thanks
Back to top
View user's profile
holziusa



Joined: 08 Jun 2004
Posts: 221
Location: thanks4yourfeedback, donate to this site!!

PostPosted: Wed 15 Dec '04 5:16    Post subject: Reply with quote

please ingnore issue above, problem solved Very Happy
Back to top
View user's profile
valium



Joined: 11 Nov 2004
Posts: 29
Location: Belgrave Melb & Scarborough Perth

PostPosted: Thu 16 Dec '04 22:55    Post subject: Reply with quote

Would you like to enlighten everyone by teling us how
Back to top
View user's profile Visit poster's website
holziusa



Joined: 08 Jun 2004
Posts: 221
Location: thanks4yourfeedback, donate to this site!!

PostPosted: Fri 17 Dec '04 3:59    Post subject: Reply with quote

hi valium,
sure i can
i have this line in my htaccess file, this will redirect on any request to
a site of your choosing.

RedirectMatch permanent (.*)$ http://www.yoursite.com

btw

maybe somday we will see these in your admin htaccess interface but if you don't they are in the help info look for htaccess Wink
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
Page 1 of 1