Log in / create account | Login with OpenID
DocForge
An Open Wiki For Software Developers

Talk:C++

From DocForge

(Difference between revisions)
(New page: We had some quirkiness with pages at URL /wiki/C++ and /wiki/C%2B%2B redirecting to /wiki/C. There was no explicit redirect and we all know C++ isn't exactly C. So I did some playing aro...)
(thanks for the post: new section)
 
Line 1: Line 1:
We had some quirkiness with pages at URL /wiki/C++ and /wiki/C%2B%2B redirecting to /wiki/C.  There was no explicit redirect and we all know C++ isn't exactly C.  So I did some playing around plus research on MediaWiki's site to find that mod_rewrite was causing a problem.  Both "++" and "%2B%2B" at the end of a URL were getting stripped during a mod_rewrite rule no matter what options I set.  The only solution which I've gotten to work is a mod_rewrite rule which specifically redirects /wiki/C++ to /wiki/C_plus_plus, then having C_plus_plus be a wiki redirect to C++.  You'll notice if you click on [[C++]] that is states "Redirected from C_plus_plus".  So if anyone runs into any related quirks, or has a better solution, please let me know.
We had some quirkiness with pages at URL /wiki/C++ and /wiki/C%2B%2B redirecting to /wiki/C.  There was no explicit redirect and we all know C++ isn't exactly C.  So I did some playing around plus research on MediaWiki's site to find that mod_rewrite was causing a problem.  Both "++" and "%2B%2B" at the end of a URL were getting stripped during a mod_rewrite rule no matter what options I set.  The only solution which I've gotten to work is a mod_rewrite rule which specifically redirects /wiki/C++ to /wiki/C_plus_plus, then having C_plus_plus be a wiki redirect to C++.  You'll notice if you click on [[C++]] that is states "Redirected from C_plus_plus".  So if anyone runs into any related quirks, or has a better solution, please let me know.
--[[User:Matt|Matt]] 18:25, 27 February 2007 (EST)
--[[User:Matt|Matt]] 18:25, 27 February 2007 (EST)
 +
 +
== thanks for the post ==
 +
 +
What a great resource!

Current revision as of 15:49, 3 July 2010

We had some quirkiness with pages at URL /wiki/C++ and /wiki/C%2B%2B redirecting to /wiki/C. There was no explicit redirect and we all know C++ isn't exactly C. So I did some playing around plus research on MediaWiki's site to find that mod_rewrite was causing a problem. Both "++" and "%2B%2B" at the end of a URL were getting stripped during a mod_rewrite rule no matter what options I set. The only solution which I've gotten to work is a mod_rewrite rule which specifically redirects /wiki/C++ to /wiki/C_plus_plus, then having C_plus_plus be a wiki redirect to C++. You'll notice if you click on C++ that is states "Redirected from C_plus_plus". So if anyone runs into any related quirks, or has a better solution, please let me know. --Matt 18:25, 27 February 2007 (EST)

thanks for the post [edit]

What a great resource!