Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [regex]

The tag has no usage guidance.

1
vote
1answer
77 views

IIS URL Rewrite: Pattern starting with forward slash never matches

I am using IIS URL Rewrite and this one has stumped me. I am redirecting a URL with specific subfolder to a new URL. e.g. https://myapp.example.com/customsite1 redirected to https://newsite1-myapp....
4
votes
2answers
727 views

How could I forcibly output the default 403-forbidden error page when http://example.com/not_found is requested?

This is my first question on StackExchange so bear with me, here is a brief breakdown of my current setup: Two different domains, two different TLDs (.dk and .de) on the same hosting plan for the ...
1
vote
0answers
119 views

How to create RegEx table in Google Tag Manager that finds a word in the URL of ClickURL?

How do I create RegEx table that find a word in the URL of ClickURL? I want to that the RegEx table will check if the word "online" exists in the ClickURL - if so, the input will be "online".
2
votes
1answer
409 views

.htaccess redirect strip old system content from end of URL

Looking to redirect all URLs which look similar to this: https://www.example.com/discussion/topix/random-page-title.133760/posts/1255466/rate?rating=13&_Token=78139%2C1464617730%...
2
votes
1answer
91 views

Redirect 301 from old domain to a new one affect google rank

I did the redirect from my old domain store to a new domain using 301 rules on .htaccess as simplified below: Options +FollowSymLinks RewriteEngine on RewriteCond %{THE_REQUEST} /store/catalogsearch/...
1
vote
1answer
49 views

REGEX with RewriteRule

This regex is confusing. I want to know its exact meaning. I try to explain by myself. I hope I won't get an error understanding. Please kindly correct my thoughts. RewriteRule "(^|/)\.(?!well-known)"...
2
votes
0answers
39 views

Filtering Google Analytics pages for Uppercase characters

I'm trying to see if users have accessed URLs with uppercase characters. I have gone into Behavior>Site Content>All Pages and am attempting to filter using Regex. However, my syntax is not ...
1
vote
1answer
58 views

Google Analytics traffic filter setup (regex needed?)

I need help in setting up a traffic filter on Google Analytics. I want to include traffic from the following URI: www.example.com/cc/ll/store/ store.domain.com Traffic from different URIs must be ...
2
votes
2answers
888 views

combine trailing slashes in analytics

Inside my analytics profile, I have to aggregate data from URLs when they are on separate rows because example.com/path is different from example.com/path/. This is a huge usability headache, so I ...
2
votes
0answers
583 views

Google Tag Manager - matching dataLayer Variables using regex

A number of pages on the site have a custom field that contains a word or a phrase (industry market segment) that get displayed in my dataLayer. I am then using that market segment variable to trigger ...
3
votes
1answer
129 views

Is this literal or code in the .htaccess file?

Background: Recently, a business acquaintance contacted me because of strange behavior on his website. As may be expected, I found that the site was compromised. One of the signs of the compromise ...
1
vote
1answer
79 views

Modify existing htaccess rewrites to not match particular URLs

Trying to rewrite only particular URL's, for example:- (1) I want to rewrite:- http://www.example.com/keyword-1 http://www.example.com/keyword-1/sub-keyword http://www.example.com/keyword-1/?p=50 (...