Welcome to WebmasterWorld Guest from 54.152.38.154

Forum Moderators: ocean10000

Message Too Old, No Replies

Helicon Ape IIS Rewrite not working

helicon ape iis rewrite not working one site only

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

New User

10+ Year Member

joined:Mar 18, 2008
posts: 9
votes: 0


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?
2:05 pm on Jan 25, 2012 (gmt 0)

New User

5+ Year Member

joined:Nov 15, 2011
posts: 5
votes: 0


Please try to use Helicon Ape Manager and enable free licenses for these sites.
2:25 pm on Jan 25, 2012 (gmt 0)

New User

10+ Year Member

joined:Mar 18, 2008
posts: 9
votes: 0


Hey, thanks. I knew it was probably something simple :)
8:38 pm on Jan 25, 2012 (gmt 0)

New User

10+ Year Member

joined:Mar 18, 2008
posts: 9
votes: 0


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!
8:57 pm on Jan 25, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


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.
12:17 am on Jan 26, 2012 (gmt 0)

New User

10+ Year Member

joined:Mar 18, 2008
posts: 9
votes: 0


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.
12:29 am on Jan 26, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members