List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
* 0 or more matches | |
+ 1 or more matches | |
? 0 or 1 match | |
^ matches the start of the string or line | |
$ matches the end of the string or line | |
\ signifies an escape sequence | |
. matches any single character except newline | |
( ) capturing group. Save to reuse later | |
| used as a logic OR inside a capturing group | |
[abc] character set. Matches one of the things in the brackets |
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |