| View previous topic :: View next topic |
| Author |
Message |
holziusa

Joined: 08 Jun 2004 Posts: 221 Location: thanks4yourfeedback, donate to this site!!
|
Posted: Wed 15 Dec '04 1:53 Post subject: htaccess redirects |
|
|
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 |
|
holziusa

Joined: 08 Jun 2004 Posts: 221 Location: thanks4yourfeedback, donate to this site!!
|
Posted: Wed 15 Dec '04 5:16 Post subject: |
|
|
please ingnore issue above, problem solved  |
|
| Back to top |
|
valium

Joined: 11 Nov 2004 Posts: 29 Location: Belgrave Melb & Scarborough Perth
|
Posted: Thu 16 Dec '04 22:55 Post subject: |
|
|
| Would you like to enlighten everyone by teling us how |
|
| Back to top |
|
holziusa

Joined: 08 Jun 2004 Posts: 221 Location: thanks4yourfeedback, donate to this site!!
|
Posted: Fri 17 Dec '04 3:59 Post subject: |
|
|
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  |
|
| Back to top |
|