Skip to main content
added 299 characters in body
Source Link
David B
  • 193
  • 1
  • 1
  • 5

I have a standard page setup at http://mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

NOTE ADDED:

"helloworld" is an unknown variable value, so I want ALL "/mypage/" urls to rewrite back, for example: http://mysite.com/mypage/abc/ http://mysite.com/mypage/1231241/ http://mysite.com/mypage/sdfasfdadsf/

Will all rewrite back to http://mysite.com/mypage/?var={path}

I have a standard page setup at http://mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

I have a standard page setup at http://mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

NOTE ADDED:

"helloworld" is an unknown variable value, so I want ALL "/mypage/" urls to rewrite back, for example: http://mysite.com/mypage/abc/ http://mysite.com/mypage/1231241/ http://mysite.com/mypage/sdfasfdadsf/

Will all rewrite back to http://mysite.com/mypage/?var={path}

I have a standard page setup at http:// mysite.com/mypage/http://mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworldhttp://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

I have a standard page setup at http:// mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

I have a standard page setup at http://mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

added 1 characters in body
Source Link
David B
  • 193
  • 1
  • 1
  • 5

I have a standard page setup at http:// mysite.com/mypage/

I'd setlike to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

I have a standard page setup at http:// mysite.com/mypage/

I'd set to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

I have a standard page setup at http:// mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/ <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld <-- Currently shows the standard page

Source Link
David B
  • 193
  • 1
  • 1
  • 5
Loading