Simple but evading me
2 posts
• Page 1 of 1
Simple but evading me
Hello. Our webmaster isn't available right now and a site has to be redirected. I know nothing about this, but I tried this from looking at rules on another site:
RewriteRule On
RewriteRule * http\://www.newwebsite.org [R=302,L,NC]
It complains about the *, said unknown expression. What criteria do I put to make it match any request? Thank you, sorry to be such a noob, lol.
RewriteRule On
RewriteRule * http\://www.newwebsite.org [R=302,L,NC]
It complains about the *, said unknown expression. What criteria do I put to make it match any request? Thank you, sorry to be such a noob, lol.
Re: Simple but evading me
Hello.
Sorry for the late response.
The "redirect all" rule can look like this:
RewriteRule On
RewriteRule .* http\://www.newwebsite.org [R=302]
And you can use the following syntax instead if you want to preserve the file and path that was originally requested and redirect to the same location on a target site:
RewriteRule On
RewriteRule (.*) http\://www.newwebsite.org$1 [R=302]
Sorry for the late response.
The "redirect all" rule can look like this:
RewriteRule On
RewriteRule .* http\://www.newwebsite.org [R=302]
And you can use the following syntax instead if you want to preserve the file and path that was originally requested and redirect to the same location on a target site:
RewriteRule On
RewriteRule (.*) http\://www.newwebsite.org$1 [R=302]
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests