exclude certain links from being rewritten

LinkFreeze is a fast and easy solution to optimize dynamic or database-driven websites for search engines
User avatar
Posts: 1
Joined: 25 Feb 2013, 15:06

exclude certain links from being rewritten

25 Feb 2013, 15:15

Hi I am trying to exclude certain links from getting rewritten.

I specifically am trying to exclude any links that end with -product-1234.htm OR -listing-1234.htm

So for example

/abababababababbab-listing-123.htm?a=b --> NO Rewrite
/abababababababbab-browse-123.htm?a=b --> YES Rewrite
/abababababababbab-browse-9999.htm?a=b --> YES Rewrite
/abababababababbab-product-666.htm?a=b --> NO Rewrite
/abababababababbab-product-8989.htm?a=b --> NO Rewrite

I made a regex rule of .*(?!-(?:listing|product)-\d+\.htm).*

And I entered @.*(?!-(?:listing|product)-\d+\.htm).* into the HTML link filter in the Advanced settings, but it is still rewriting those links.

Does anyone know if it is possible to write a rule to exclude these specific links from getting rewritten?

Thanks,
mordytk

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: exclude certain links from being rewritten

26 Feb 2013, 08:20

Hello,

Please try to fix your rule as follows:

@^(?!.*-(?:listing|product)-\d+\.htm).*

User avatar
Posts: 27
Joined: 13 Apr 2015, 03:03

Re: exclude certain links from being rewritten

13 Apr 2015, 03:12

Thanks you :D

Educa

User avatar
Posts: 1
Joined: 27 Jul 2017, 07:10

Re: exclude certain links from being rewritten

27 Jul 2017, 08:01

Interesting question. I also wonder if LinkFreeze is available for a website of a web development company?

User avatar
Posts: 1
Joined: 08 Aug 2017, 12:02

Re: exclude certain links from being rewritten

08 Aug 2017, 12:05

Dear Admin I must say you website is Super awesome. Great layout and awesome content. Really like the way you are. Thanks for sharing. iExplorer Registration code

Return to LinkFreeze

Who is online

Users browsing this forum: No registered users and 47 guests