Rewrite Url Example?

Rewrite Url Example?

Postby ruffsl » Tue 11. Mar 2014, 21:02

I'm not too familiar with regular expression patterns, put I'm trying to use the "Rewrite Url" option in the Advanced tab.
I keep finding a few references starting with
Code: Select all
in my static HTML, and I'd like to swap the domain to
Code: Select all
. I think this is because some java script addon I'm using doesn't seem to be pointing the hosting URL no matter how wordpress's general settings are set.

I've come up with rule, but I'm not sure if its correct or how the plugin is expecting the regular expression:
"If this
Code: Select all
%{HTTP_HOST} http://localhost:1111/ [NC]
regular expression pattern match than rewrite the url to
Code: Select all
^(.*)$$1 [L,R=301]

Posts: 1
Joined: Thu 20. Feb 2014, 20:35

Re: Rewrite Url Example?

Postby Erik Sefkow » Sat 15. Mar 2014, 17:42

rewriteexample.JPG (20.83 KiB) Viewed 2061 times

I think this should solve your problem.
Erik Sefkow
Posts: 69
Joined: Sun 16. Sep 2012, 14:44

Return to questions