Forum Moderators: open

Message Too Old, No Replies

Helicon Ape IIS Rewrite not working

helicon ape iis rewrite not working one site only

         

pixelfast

10:53 pm on Jan 24, 2012 (gmt 0)

10+ Year Member



I'm using Helicon Ape on IIS/Windows Server 2008 R2 64 bit.

I have it working fine on one website, but it will not work on any other sites.

I understand it is supposed to work with up to 3 sites.

I placed the follwing line in the .htaccess file for the non-working site and could still browse the site fine.

When I place that line in the working site's .htaccess I get "page not available".

RewriteRule .? - [G]

Any suggestions?

govorunov

2:05 pm on Jan 25, 2012 (gmt 0)

10+ Year Member



Please try to use Helicon Ape Manager and enable free licenses for these sites.

pixelfast

2:25 pm on Jan 25, 2012 (gmt 0)

10+ Year Member



Hey, thanks. I knew it was probably something simple :)

pixelfast

8:38 pm on Jan 25, 2012 (gmt 0)

10+ Year Member



Since I have you on the line, quick easy one.

How do I do a 301 redirect from

/category.asp?s=UT&c=ACC

to /UT/ACC


I have.

RewriteRule ^category.asp?s=([a-zA-Z][a-zA-Z])&c=(.*) /$1/$2 [R=301,L]
RewriteRule ^([a-zA-Z][a-zA-Z])/(.*)$ category.asp?s=$1&c=$2

Line 2 is working. Line 1 is not.

Thanks!

g1smd

8:57 pm on Jan 25, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



RewriteRule pattern matching can match only PATH data.

If you want to test the query string data you need a preceding RewriteCond for that.

The redirect target should include the protocol and domain name.

Every rule needs the [L] flag.

pixelfast

12:17 am on Jan 26, 2012 (gmt 0)

10+ Year Member



Thanks for the reply, but I guess I'm still confused.

What is the code (if possible) to have requests for:

category.asp?s=UT&c=ACC

redirect to:

/UT/ACC

If not possible, sorry for the bother, but seems it should be.

g1smd

12:29 am on Jan 26, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There's close to ten thousand previous threads here with examples of using RewriteCond directives.

You'll need to test THE_REQUEST to avoid a redirect loop.

There's no point providing code you don't understand; you can severely harm your site if you get things wrong.

The point of this forum is to help you write you own code, code that you will actually understand.