Title: Substring redirect
Last modified: August 21, 2016

---

# Substring redirect

 *  [WSR](https://wordpress.org/support/users/wsr/)
 * (@wsr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/substring-redirect/)
 * I would like to include custom CSS to my wordpress blog that would always make
   the page link back to [http://www.Waterstone-Realty.com](http://www.Waterstone-Realty.com)
   no matter what. Tried something like this:
 * 05. a[href^=”/idx/”] {
    06. href=”www.waterstone-realty.com/idx/”; 07.}
 * Sure it’s a far cry from right.
 * I have 2 plugins for idx. One uses a global dynamic wrapper. When I use one that
   NEEDS the subdomain, the sidebar plugins aren’t recognizing the correct subdomain.
 * You can try it on any of the properties half way down the page in red at [http://idx.waterstone-realty.com/i/golf](http://idx.waterstone-realty.com/i/golf)
 * Would also love to see it work for masked domains with a no follow or something
   in the link so when we click links it always goes to a new site.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 10 months ago](https://wordpress.org/support/topic/substring-redirect/#post-5149185)
 * Are you sure you’re not mistaking CSS for something like JavaScript?
 *  Thread Starter [WSR](https://wordpress.org/support/users/wsr/)
 * (@wsr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/substring-redirect/#post-5149186)
 * Anything is possible Andrew. Just want to be able to do it.
 *  Thread Starter [WSR](https://wordpress.org/support/users/wsr/)
 * (@wsr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/substring-redirect/#post-5149191)
 * Does that mean it is possible with javascript, and would you happen to be able
   to help? Seems simple enough. I can add anything I want to header of my blog.
   Just need to know what to put.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 10 months ago](https://wordpress.org/support/topic/substring-redirect/#post-5149193)
 * Try this plugin instead: [http://wordpress.org/plugins/quick-pagepost-redirect-plugin/](http://wordpress.org/plugins/quick-pagepost-redirect-plugin/)
 *  Thread Starter [WSR](https://wordpress.org/support/users/wsr/)
 * (@wsr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/substring-redirect/#post-5149205)
 * Should work. What would be my quick link code if I need part of a string?
 * For instance redirect /idx/mls-..
    to [http://www.waterstone-realty.com/idx/mls-](http://www.waterstone-realty.com/idx/mls-)..
 * Would love it if I could just do /idx/ but unfortunately I need a partial because
   both subdomains use that path.
 * for instance:
    [http://idx.waterstone-realty.com/idx/search/advanced](http://idx.waterstone-realty.com/idx/search/advanced)
   [http://www.waterstone-realty.com/idx/mls-g4801768-16400_coopers_hawk_ave_clermont_fl_34714](http://www.waterstone-realty.com/idx/mls-g4801768-16400_coopers_hawk_ave_clermont_fl_34714)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Substring redirect’ is closed to new replies.

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [string](https://wordpress.org/support/topic-tag/string/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [WSR](https://wordpress.org/support/users/wsr/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/substring-redirect/#post-5149205)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
