Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Please Help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 21 July 2008 at 9:19pm | IP Logged Quote tungdt

I try use ISAPI_Rewrite 3 (Demo 45 Day .I just only  use this product 3 day ago )

I want to make some work :

if user type http://84click.com( this is a test site)  then Web Server should rewrite and go to  http://www.84click.com

if user type http://84click.com/browse/index.asp  then Web Server should rewrite and go to  http://www.84click.com/browse/index.asp

an so on with all link of my site 

I tried use example of Help(as follows)  :

RewriteEngine on

RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]

But it doesn't work.

I found a topic http://www.helicontech.com/forum/forum_posts-TID-10052.htm

and I replace config file (as follows):

RewriteBase /
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteRule (.*) http://%1/$1 [R=301,L]

But it only working with link www(http://www.84click.com) and if  link is http://84click.com then client (IE ,FireFox) has error

IE: Services unable  

FireFox :The page isn't redirecting properly   

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Administrator or Moderator Group help me please     .Thanks in advance .

I use Window Server 2003 ,IIS 6.0 , ISAPI_Rewrite3,Asp Language

 



Edited by tungdt - 23 July 2008 at 9:04pm


__________________
I like ISAPI ReWriter .Good Product .
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 22 July 2008 at 3:17am | IP Logged Quote tungdt

Please Help Help Help ...
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 22 July 2008 at 4:28am | IP Logged Quote Anton

Please provide rewrite log records for the following config:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [R=301,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 22 July 2008 at 5:05am | IP Logged Quote tungdt

Thank you very much .
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 22 July 2008 at 8:53pm | IP Logged Quote tungdt

Thank for support .

But I has problem

this is some Duplicate link

http://www.84click.com/

http://www.84click.com/browse/

http://www.84click.com/submitsite/

http://www.84click.com/monogram/

The search engine was to return 2 identical pages on the same page of the search results, it's not likely to be useful to the searcher. And PageRank decrease .

Can you tell me How to config .htaccess file to Prevent Duplicate link (All of link )?

And this link : http://www.84click.com/browse/index.asp?letter=E1

In Help (Keyword rich URLs help ) config :

RewriteEngine on
RewriteBase /
RewriteRule ^products/[^?/]*_(\d+)\.asp /productpage.asp?productID=$1 [QSA]

then URL rewrite from http://www.mysite.com/productpage.asp?productID=127  to http://www.mysite.com/products/our_super_tool_127.asp

I config like that :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [R=301,L]

RewriteEngine on
RewriteBase /
RewriteRule ^letter/[^?/]*_(\d+)\.asp /browse/index.asp?letter=$1 [QSA]

Is that OK ?Or systax Error ?

Can you tell me How to config this problem and how to know basic systax of ReWrite URL  ?

Thank you



Edited by tungdt - 22 July 2008 at 10:09pm
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 23 July 2008 at 2:35am | IP Logged Quote tungdt

Sorry for my question  because I'm an inexperienced developer of Rewrite URL . But Please Help


Edited by tungdt - 23 July 2008 at 9:06pm


__________________
I like ISAPI ReWriter .Good Product .
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 600
Posted: 23 July 2008 at 6:16am | IP Logged Quote Vyacheslav

Hi Dinh.

Please try the following:
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [R=301,L]

RewriteRule ^letter/[^?/]+_(\d+)\.asp /browse/index.asp?letter=$1 [NC,L,QSA]


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 23 July 2008 at 8:09am | IP Logged Quote Anton

You can try to apply redirect for this purpose, like:

RewriteRule ^default\.aspx$ / [NC,R=301,L]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 23 July 2008 at 8:31pm | IP Logged Quote tungdt

Thank Anton,Vyacheslav for Support

I apply config file (as your guide ) :

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [R=301,L]
RewriteRule ^(.*)/(default|index)\.(asp|aspx|html|htm)$ $1/ [I,R=301]
RewriteRule ^default\.asp$ / [NC,R=301,L]
RewriteRule ^index\.asp$ / [NC,R=301,L]
#Config URL Rewrite for index.asp in browse :
RewriteRule ^letter/[^?/]+_(\d+)\.asp /browse/index.asp?letter=$1 [NC,L,QSA]

And now Duplicate link problem is OK (Thank you very much)

But this link : [My Domain]/browse/index.asp?letter=[Parameter]  didn't work (click link to view )? !

What the master with final line in config file ?

Thank in Advance .




 


Edited by tungdt - 23 July 2008 at 9:02pm


__________________
I like ISAPI ReWriter .Good Product .
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 24 July 2008 at 3:46am | IP Logged Quote Anton

Please try this rule:

RewriteRule ^browse/$ /browse/index.asp [NC,L,QSA]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 25 July 2008 at 1:47am | IP Logged Quote tungdt

Thank

I try Apply rule

RewriteRule ^browse/$ /browse/index.asp [NC,L,QSA]

And now config file look like :

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [R=301,L]
RewriteRule ^(.*)/(default|index)\.(asp|aspx|html|htm)$ $1/ [I,R=301]
RewriteRule ^browse/$ /browse/index.asp [NC,L,QSA]
RewriteRule ^default\.asp$/ [NC,R=301,L]
RewriteRule ^index\.asp$  / [NC,R=301,L]

But now Fire Fox throw Error like that :

Redirect Loop
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

    * Have you disabled or blocked cookies required by this site?
    * NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.

IE loop request to server (Process bar at bottom of IE change and never complete) .

How can I fix this problem ?




__________________
I like ISAPI ReWriter .Good Product .
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 600
Posted: 25 July 2008 at 5:15am | IP Logged Quote Vyacheslav

Hi Dinh.
Please try the following:
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [R=301,L]
RewriteRule ^(?!browse)(.*)/(default|index)\.(asp|aspx|html|htm)$ $1/ [NC,R=301,L]
RewriteRule ^browse/$ /browse/index.asp [NC,L,QSA]
RewriteRule ^default\.asp$/ [NC,R=301,L]
RewriteRule ^index\.asp$ / [NC,R=301,L]


Edited by Vyacheslav - 25 July 2008 at 5:25am


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 25 July 2008 at 5:19am | IP Logged Quote Anton

This config should work for you:

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http://www.%1%2 [R=301,L]
RewriteRule ^(.*)/(?:default|index)\.(?:asp|aspx|html|htm)$ $1/ [NC,R=301,L]
RewriteRule ^browse/$ /browse/index.asp [NC,L,QSA]



__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
tungdt
Newbie
Newbie


Joined: 21 July 2008
Location: United States
Online Status: Offline
Posts: 8
Posted: 28 July 2008 at 10:17pm | IP Logged Quote tungdt

Thank Anton and Vyacheslav

But it didn't working

click here http://www.timgiupban.com/browse/index.asp to view detail error ?

Help me fix this problem ,please ?

Thank for suuport .



Edited by tungdt - 28 July 2008 at 10:20pm


__________________
I like ISAPI ReWriter .Good Product .
Back to Top View tungdt's Profile Search for other posts by tungdt Visit tungdt's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 29 July 2008 at 4:46am | IP Logged Quote Anton

Have you tried Vyacheslav's config?
Please provide rewrite log records for the specific request using that config.


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 600
Posted: 29 July 2008 at 5:32am | IP Logged Quote Vyacheslav

Hi Dinh.
We investigated your site, and according to my rules all works normally. Can you please explain, with examples, what doesn't works?

__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum