Forum Moderators: open

Message Too Old, No Replies

URL Rewrite Issue

How can i rewrite dynamic URL.

         

ashis06

6:54 am on Jun 2, 2008 (gmt 0)

10+ Year Member



Hi,

I have a ASP based website which is dynamically created. All internal links are dynamic. How can I rewrite the URL to a search engine friendly static URL?

Please Suggest.

Ocean10000

1:48 pm on Jun 2, 2008 (gmt 0)

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



Since this is an Asp Classic sight one of the most common methods is to use ISAPI_Rewrite which is a 3 party ISAPI component which works with IIS. This will allow you to do what you requested mapping dynamic urls to static ones. I have personally never used it but others have in this forum.

ashis06

6:28 am on Jun 3, 2008 (gmt 0)

10+ Year Member



OK.
How can i use this 3rd party service. Is it paid or free? For that i need to have ASP programing knowledge?

defanjos

6:57 pm on Jun 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>How can i use this 3rd party service. Is it paid or free? For that i need to have ASP programing knowledge?

do a serch for isapi_rewrite, and you'll get all the details. btw, they have a free version available that may do what you are looking for.

no asp knowledge needed.

ashis06

8:37 am on Jun 10, 2008 (gmt 0)

10+ Year Member



I want to redirect my site [mysite.com...] to [mysite.com...]
It's a asp based website. I tried with this.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.mysite.com$ [NC]
RewriteRule ^(.*)$ [mysite.com...] [L,R=301]

But it's not working.

Kindly suggest. I am wondering.

topr8

8:44 am on Jun 10, 2008 (gmt 0)

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



you cannot use .htaccess on an iis web server

(which i assume you are using)

the code you have written is for .htaccess

as regards the comments about ISAPI_Rewrite

it is a component that needs to be installed on the server, if you are on a shared hosting environment then i highly doubt you would be able to do it.

ashis06

12:27 pm on Jun 11, 2008 (gmt 0)

10+ Year Member



Thanks... but could you please tell me which component and how can I resolve the issue in the shared hosting environment ?

mrMister

9:50 am on Jun 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ashis06, can you confirm whether your web host has ISAPI_Rewrite installed and that they have enabled it for your web site?

Do you know which version of ISAPI_Rewrite they have?

Where did you place your rewrite code. Did you save it to a file on your web space? If so, where did you save it and what was the name of the file?

pageoneresults

3:46 pm on Jun 16, 2008 (gmt 0)

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



you cannot use .htaccess on an iis web server.

Actually you can. Version 3.0 of ISAPI_Rewrite uses the .htaccess method. ;)

If you are using Version 2.0 and the .ini method, the code for permanently redirecting non www to www is...

RewriteCond Host: ^example\.com
RewriteRule (.*) http\://www\.example\.com$1 [I,RP]

ashis06

6:35 am on Jun 18, 2008 (gmt 0)

10+ Year Member



mrMister, I have placed the rewrite code at root directory of web server where index file resides. /ar43283@65349ddal/wwwroot/ .

The rewrite file name was .htaccess and I saved the file into above path.

mrMister

1:07 pm on Jun 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ashis06, can you confirm whether your web host has ISAPI_Rewrite installed and that they have enabled it for your web site?

Do you know which version of ISAPI_Rewrite they have?

ashis06

7:06 am on Jun 19, 2008 (gmt 0)

10+ Year Member



mrMister, How could I know this? Should I need to Login to Control panel?

Staffa

7:49 am on Jun 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ashis06, to answer mrMister's question you need to contact your hosting company and ask them if and what version is installed.

topr8

3:00 pm on Jun 19, 2008 (gmt 0)

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



>>Actually you can. Version 3.0 of ISAPI_Rewrite uses the .htaccess method

yes i understand that pageoneresults, however i said that you need to install the ISAPI_Rewrite component.
without this component then you cannot.

with reference to ashis06, if you are on a iis webserver i doubt very much that the component is installed unless the host company advertises it on their webpage, as this is a very good feature to have, i doubt they would instal it without shouting about it... however you need to ask them.
if you are running asp pages on an apache webserver then i imagine .htaccess works if it is enabled

topr8

3:00 pm on Jun 19, 2008 (gmt 0)

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



edited out ... duplicate post