Change 2.0 to 3.0
2 posts
• Page 1 of 1
Change 2.0 to 3.0
Hi i have this code in my actual server:
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
RewriteRule /Articulos/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9\-]+)$ /articulo.asp\?id=$1&comunidad=$2&titulo=$3 [I,L]
RewriteRule /Contenidos/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9\-]+)$ /contenido.asp\?id=$1&comunidad=$2&titulo=$3 [I,L]
RewriteCond Host: (?!www\..)([^.]+\.[^.]+)
RewriteRule (.) http\://www.$1$2 [RP]
We purchased a new server and we will install version 3.0, but need help to adapt the code.
Thankxxx
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
RewriteRule /Articulos/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9\-]+)$ /articulo.asp\?id=$1&comunidad=$2&titulo=$3 [I,L]
RewriteRule /Contenidos/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9\-]+)$ /contenido.asp\?id=$1&comunidad=$2&titulo=$3 [I,L]
RewriteCond Host: (?!www\..)([^.]+\.[^.]+)
RewriteRule (.) http\://www.$1$2 [RP]
We purchased a new server and we will install version 3.0, but need help to adapt the code.
Thankxxx
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Change 2.0 to 3.0
Hello,
If none of the rules are related to the requests with query_strings, than it should be:
Regards
Andrew
If none of the rules are related to the requests with query_strings, than it should be:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* - [NC,F]
RewriteRule ^Articulos/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9\-]+)$ /articulo.asp\?id=$1&comunidad=$2&titulo=$3 [NC,L]
RewriteRule ^Contenidos/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9\-]+)$ /contenido.asp\?id=$1&comunidad=$2&titulo=$3 [NC,L]
RewriteCond %{HTTP:Host} (?!www\..)([^.]+\.[^.]+) [NC,L]
RewriteRule (.*) http\://www.$1$2 [NC,R=301,L]
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests