Welcome To Snipplr


Everyone's Recent Snippets Tagged redirect



« Prev 1 2 3 4
This example shows you how to create redirection o another directory. It may be useful, for example, when you have a project, placed in sub-directory.
0 1045 posted 8 years ago by apphp-snippets
Statt mit .htaccess kann eine 301-Weiterleitung auch über php erfolgen
0 984 posted 10 years ago by ulfinger
[ Yii Framework ] Use this to redirect to previous page or last request URL
0 938 posted 10 years ago by tucq88
This simple scripts show a possibility to call a JavaScript function that retrieves a variable passed from drop down box as a parameter and then the JavaScript redirects the browser to the variable that was passed to it.
0 947 posted 11 years ago by apphp-snippets
You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will...
2 1245 posted 11 years ago by apphp-snippets
This redirect is domain independent.
0 970 posted 11 years ago by abwaters
Sends the user to a different Drupal page. This issues an on-site HTTP redirect. The function makes sure the redirected URL is formatted correctly.
0 751 posted 12 years ago by dilios
//You cannot change the whole url without redirecting, what you can do instead is change the hash. //The hash is the part of the url that goes after the # symbol. //That was initially intended to direct you (locally) to sections of your HTML doc...
0 916 posted 12 years ago by dnnsldr
I needed away to redirect to a custom BP component upon login for users and this works great. Add this to your functions file. If you are the admin, it will redirect you to the wp-admin.
0 15315 posted 12 years ago by dnnsldr
This needs to be run on an action, or at least I wanted able to get it to run outside of an action, I suggest template_redirect. More information at the link.
0 852 posted 12 years ago by FatFolderDesigner
PHP 301 redirect code for giving a page a 301 permanently moved code
0 724 posted 12 years ago by bigroadtrip
Put this before a "RewriteRule" to call the rule only if this request was not from a redirect.
0 611 posted 12 years ago by tribal
This snippet can be used to redirect the user to a different page (launch-page index.html) using only HTML
0 812 posted 12 years ago by sommertim
Removes WWW from the current URL, if exists.
1 770 posted 12 years ago by thewickedchemist
Issues a check to see if the "www" is included, if not, forces "www" to be appended to the URL in question.
1 793 posted 12 years ago by thewickedchemist
Comment out the SharePoint:SaveButton tag and replace with input tag
0 1398 posted 13 years ago by rumremix
Place at the top of your header.php to redirect visitors who are not logged-in to the Wordpress admin. I use this to redirect to a simple HTML 'coming soon' page while sites are in development.
1 872 posted 13 years ago by adambundy
0 1130 posted 13 years ago by sybrex
I found this useful. Works as expected.
0 803 posted 13 years ago by RainyDayMedia
Prevent direct access to php file (Prevenir acesso direto ao arquivo php)
0 851 posted 13 years ago by cdohost
Redirect from the root of the site to another URL.
0 803 posted 13 years ago by ToddSmithSalter
0 744 posted 13 years ago by jacksaidwhat
A user may click a link on a mobile site which should open a page on the desktop site, not the mobile site. Appending the following code to the link will do that.
0 1054 posted 13 years ago by amandalaine
0 935 posted 13 years ago by kreatific
If you want to simulate someone clicking on a link, use location.href. If you want to simulate an HTTP redirect, use location.replace.
0 767 posted 13 years ago by vagrantradio
0 1138 posted 13 years ago by stephcode
And http://www.htpasswdgenerator.com/apache/htaccess.html
0 856 posted 13 years ago by stephcode
Redirects all server inquires to the one url to reduce duplicate indexes. AKA. http://www.ex.com and http://ex.com
0 837 posted 13 years ago by CKOink
« Prev 1 2 3 4