New answers tagged

2

You can have clean URLs with the following step. Install the wiki into http://localhost/w and NOT into http://localhost/wiki then Modify the following in LocalSettings.php after you have set it up: $wgArticlePath = "/wiki/$1"; In the ROOT directory place the following .htaccess file: RewriteEngine on ## uncomment this rule if you want to redirect to ...


1

Yes this is possible provided that your DNS daemon has the capabilities to provide the closest web server IP based on requesting client IP. Not a typical DNS daemon deployment that's for sure. Found two links on configuring BIND to accomplish what you're looking for: HOWTO Implement GeoDNS using BIND - scripts for configuring BIND to be GeoIP aware. ...


0

As long as your redirect chains are of reasonable length, redirect chains are absolutely fine. If you chain 4 or more redirects together Google may start to refuse to follow them. If you chain 10 or more redirects together browsers start to give errors to users. If chained redirects your site to be faster, I would use the chained redirects. As long as ...


0

It depends on how your Web app is built and what it does when it is running. If your app is running on a server with dual-core 2GHz and it is only using 50% of the CPU at all times, then going to a quad-core 3GHz is not going to improve the app’s performance. It may be to get that app to run better, you have to give it more RAM, or faster storage, or bigger ...


0

This could be further simplified to: RewriteRule ^([\w-]+(/[\w-]+)?)/?$ /userviewproducts.php?category=$1 [L] RewriteRule ^([\w-]+/[\w-]+/[\w-]+)/?$ /viewbuyproduct.php?1=$1 [L] \w is shorthand for [A-Za-z0-9_]. The - (hyphen) does not need to be escaped when used at the start or end of the character class. The ? at the end makes the preceding slash ...


0

To redirect a request for /something%26else (or /something&else, since the ampersand does not need to be escaped in the URL-path) to /something%2526else (ie. /something%26else when decoded) then you could do something like: RewriteRule ^(something)&(else)$ /$1\%26$2 [R,L] The RewriteRule pattern matches against the %-decoded URL-path (ie. &, ...


1

Have a look at my answer (on Drupal.SE) to the question "How to use the Rules module to implement a custom redirect for an outdated URL?". I bet the solution described there (using the Rules module) also works for this case. As detailed in that answer: the "clue" to get this to work, is to use the Rules Event "Drupal is initializing". That will ensure that ...



Top 50 recent answers are included