Sagamore .htaccess: Difference between revisions
Jump to navigation
Jump to search
(Minor cleanup) |
mNo edit summary |
||
Line 9: | Line 9: | ||
* Browsing site content/file listing (Wordpress admin panel) |
* Browsing site content/file listing (Wordpress admin panel) |
||
* Search for "<code>site:sagamorehillspta.org</code>" at search engines |
* Search for "<code>site:sagamorehillspta.org</code>" at search engines |
||
* See what the |
* See what the [https://web.archive.org Internet Archive] comes up with |
||
<pre> |
<pre> |
Revision as of 14:05, 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 (but 404) (are there any?).
- Include all links, even if they forward to the same place another link already does or even if they 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
Discover links by:
- Browsing site content/file listing (Wordpress admin panel)
- Search for "
site:sagamorehillspta.org
" at 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