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 38 posted 4 years ago by apphp-snippets
Statt mit .htaccess kann eine 301-Weiterleitung auch über php erfolgen
0 30 posted 5 years ago by ulfinger
[ Yii Framework ] Use this to redirect to previous page or last request URL
0 23 posted 6 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 22 posted 7 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 101 posted 7 years ago by apphp-snippets
This redirect is domain independent.
0 20 posted 7 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 22 posted 7 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 31 posted 7 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 32 posted 7 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 21 posted 7 years ago by FatFolderDesigner
PHP 301 redirect code for giving a page a 301 permanently moved code
0 22 posted 8 years ago by bigroadtrip
Put this before a "RewriteRule" to call the rule only if this request was not from a redirect.
0 8 posted 8 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 16 posted 8 years ago by sommertim
Removes WWW from the current URL, if exists.
1 16 posted 8 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 24 posted 8 years ago by thewickedchemist
Comment out the SharePoint:SaveButton tag and replace with input tag
0 60 posted 8 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 11 posted 8 years ago by adambundy
0 27 posted 8 years ago by sybrex
I found this useful. Works as expected.
0 21 posted 8 years ago by RainyDayMedia
Prevent direct access to php file (Prevenir acesso direto ao arquivo php)
0 20 posted 8 years ago by cdohost
Redirect from the root of the site to another URL.
0 22 posted 8 years ago by ToddSmithSalter
0 17 posted 8 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 21 posted 8 years ago by amandalaine
0 16 posted 8 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 11 posted 8 years ago by vagrantradio
And http://www.htpasswdgenerator.com/apache/htaccess.html
0 25 posted 8 years ago by stephcode
« Prev 1 2 3 4