Sagamore .htaccess: Difference between revisions
Jump to navigation
Jump to search
(file intro) |
(Link to server) |
||
Line 1: | Line 1: | ||
To meet [[Sagamore online goals 2014#URL_redirects]], build out a comprehensive <code>.htaccess</code> file that covers the existing [[Sagamore Hills PTA website]] (2011-2014) addresses, as well as addresses dropped from the site that still show up via search (404) (are there any?). |
To meet [[Sagamore online goals 2014#URL_redirects]], build out a comprehensive <code>.htaccess</code> file on [[Sagamore Hills PTA Dreamhost account#Server|the server]] that covers the existing [[Sagamore Hills PTA website]] (2011-2014) addresses, as well as addresses dropped from the site that still show up via search (404) (are there any?). |
||
* Include ''all'' links, even if it forwards to the same place another link already does or make it simply dump to the homepage |
* Include ''all'' links, even if it forwards to the same place another link already does or make it simply dump to the homepage |
Revision as of 11:56, 15 May 2014
To meet Sagamore online goals 2014#URL_redirects, build out a comprehensive .htaccess
file on the server that covers the existing Sagamore Hills PTA website (2011-2014) addresses, as well as addresses dropped from the site that still show up via search (404) (are there any?).
- Include all links, even if it forwards to the same place another link already does or make it simply dump to the homepage
- Inlcude non-page (file) links too (when it makes sense)
- List addresses in alphabetical order and thoroughly comment to ease future pruning
Discovering links by:
- Browsing site content/file listing (admin panel)
- Search for "
site:sagamorehillspta.org
" with search engines - See what the Internet Archive comes up with
# .htaccess # Sagamore Hills PTA # http://www.9.0ne.org/w/Sagamore_.htaccess # Examples # # WITHOUT query parameters # RedirectMatch 301 ^/openhouse$ http://sagamorehillspta.org/?page_id=975 # WITH query parameters # Match on query string, match on root (/) (and "?" seems necessary?), append redirect url with "?" to avoid appending the matched query string, redirect permanently # RewriteCond %{QUERY_STRING} ^page_id=975$ # RewriteRule ^/?$ http://www.sagamorehillspta.org/openhouse? [redirect=301] # Necessary for "RewriteRule"s RewriteEngine on