Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#121 2018-09-08 07:58:05
Re: Testers needed: flat development (4.7+ only)
Sorry, yes. Of course, you need to create a section called sitemap and assign the page template to it.
About the blank line. Try making the tags at the beginning run into each other:
<txp:header value="application/xml; charset=utf-8" /><?xml version="1.0" encoding="UTF-8"?>
…
Otherwise use smd_wrap and wrap the entire template in <txp:smd_wrap_all>…</txp:smd_wrap_all>
which trims unwanted space from the beginning and end.
TXP Builders – finely-crafted code, design and txp
Online
#122 2018-09-08 08:08:11
Re: Testers needed: flat development (4.7+ only)
You can place <txp:header />
wherever you want, even at the end.
Edit: also,
<txp:evaluate test="article_custom">
<lastmod><txp:article_custom section='<txp:section />' limit="1" sort="LastMod desc"><txp:modified format="%Y-%m-%d" /></txp:article_custom></lastmod>
</txp:evaluate>
can be shorten to
<txp:article_custom section='<txp:section />' limit="1" sort="LastMod desc" wraptag="lastmod">
<txp:modified format="%Y-%m-%d" />
</txp:article_custom>
Offline
#123 2018-09-08 08:38:25
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: Testers needed: flat development (4.7+ only)
Don’t work without 1 blank char at the begining.
I try all the tips :
- making the tags at the beginning run into each other -> replace the blank line by a blanc char.
- smd_wrap_all (last 0.3) : don’t work.
- put the header at the end
If I remove the header tag, no more error, but no xml file displayed. And again a blank char at the begining !
I try this with a only comment in the page (see the source code) : a blank char at the begining.
(Official 4.7.1 Textpattern)
Last edited by jpdupont (2018-09-08 08:39:33)
Offline
#124 2018-09-08 08:51:27
Offline
#125 2018-09-08 09:13:08
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: Testers needed: flat development (4.7+ only)
Yes Oleg, thanks.
Some advice ? Reinstall all the files ???
Offline
#126 2018-09-08 09:58:38
Re: Testers needed: flat development (4.7+ only)
I am also testing another code and I am getting the same results as JP.
<txp:header value="application/xml; charset=utf-8" />
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>http://www.neme.org/</loc></url>
<url><loc>http://www.neme.org/about/</loc></url>
<url><loc>http://www.neme.org/events/</loc></url>
<url><loc>http://www.neme.org/nac/</loc></url>
<url><loc>http://www.neme.org/participations/</loc></url>
<url><loc>http://www.neme.org/publications/</loc></url>
<url><loc>http://www.neme.org/related-links/</loc></url>
<url><loc>http://www.neme.org/texts/</loc></url>
<url><loc>http://www.neme.org/workshops/</loc></url>
<txp:article_custom section="events,participations,about,texts" exclude="1,2,44" break="" wraptag="url" limit="9999"><loc><txp:permlink /></loc><lastmod><txp:modified format="%Y-%m-%dT%H:%M:%SZ" /></lastmod></txp:article_custom>
</urlset>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#127 2018-09-08 10:04:22
Re: Testers needed: flat development (4.7+ only)
Most probably some plugin’s work, post your diagnostics ;-)
Edit: given how your pages source is compacted, I would start with this one.
Offline
#128 2018-09-08 10:08:34
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: Testers needed: flat development (4.7+ only)
Textpattern version: 4.7.1 (8556b02a5a91658745d1d493ff8ab322)
Last update: 2018-06-26 08:03:14/2018-06-26 07:59:53
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: section_id_title
Production status: live
Temporary directory path: __TXP-ROOT/textpattern/tmp
PHP version: 7.2.9
GD Graphics Library: bundled (2.1.0 compatible); Supported formats: GIF, JPEG, PNG.
Server timezone: UTC
Server local time: 2018-09-08 10:06:52
Daylight Saving Time enabled?: 1
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): Europe/Brussels (3600)
MySQL: 5.6.41-84.1 (Percona Server (GPL), Release 84.1, Revision b308619)
Database server time: 2018-09-08 10:06:52
Database server time offset: 0 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: fr_FR.UTF-8
Site / Admin language: fr / fr
Web server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 3.10.0-693.11.6.el7.x86_64
Admin-side theme: phw_sandspace 4.7.1
Active plugins:
abc_article_image-0.3
adi_article_tab-0.3
adi_calc-1.2
adi_cat_menu-0.7 (modified)
adi_form_links-0.4 (modified)
adi_globals-0.3
adi_gps-0.4
adi_list-0.2
adi_matrix-2.1beta5
adi_notes-1.3.1 (modified)
adi_recent_tab-0.6
adi_search_db-0.3
arc_meta-2.0.1-beta.1
bot_write_tab_customize-8.0
dup_froala-0.2 (modified)
esq_sectionsort-2,02
etc_datepicker-0.3.1
etc_query-1.3.4
etc_tree-0.1.4
glx_if-0.7
glz_custom_fields-2.0 beta
ied_plugin_composer-1.2.1
mck_snippet-1.7.2 (modified)
oui_cookie-1.0.0-BETA3
rah_repeat-1.0.1
rss_admin_db_manager-4.4.1
smd_if-0.91
smd_lib-0.36
smd_macro-0.41
smd_maxlist-0.1
smd_multi_choice-0.20
smd_query-0.50
smd_tabber-0.11
smd_tags-0.51 (modified)
smd_thumbnail-0.4.0-beta (modified)
smd_where_used-0.30
smd_wrap-0.3.0 (modified)
smd_xml-0.41 (modified)
soo_if_frontpage-0.1.9
soo_page_break-0.1.2
spf_codemirror-1.0
stm_article_order-0.3.3
vdh_flickr-0.8.14 (modified)
yab_email-0.7
.htaccess file contents:
------------------------
<FilesMatch \.php$>
SetHandler php72-cgi
</FilesMatch>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
# BEGIN Textpattern
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
## Class B (no www) redirects
# sitemap rewrite
RewriteRule ^sitemap.xml$ index.php?s=sitemap [L]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
## Redirects for http to https
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
# END Textpattern
------------------------
Last edited by jpdupont (2018-09-08 10:11:14)
Offline
#129 2018-09-08 10:18:12
Re: Testers needed: flat development (4.7+ only)
Textpattern version: 4.7.1 (8556b02a5a91658745d1d493ff8ab322)
Last update: 2018-06-26 11:14:43/2018-06-26 11:12:03
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: section_title
Production status: live
Temporary directory path: /home/colak/tmp
PHP version: 7.2.9
GD Graphics Library: bundled (2.1.0 compatible); Supported formats: GIF, JPEG, PNG.
Server timezone: UTC
Server local time: 2018-09-08 10:17:35
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds): Asia/Nicosia (7200)
MySQL: 5.6.41-84.1 (Percona Server (GPL), Release 84.1, Revision b308619)
Database server time: 2018-09-08 10:17:35
Database server time offset: 0 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: en_GB.UTF-8
Site / Admin language: en-gb / en-gb
Web server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 3.10.0-693.11.6.el7.x86_64
Admin-side theme: hive 4.7.1
Active plugins:
act_if_mobile-0.1.2 (modified)
adi_matrix-2.1beta5
adi_notes-1.3.1
com_connect-4.6.0-beta.2
etc_easter_eggs-0.3 (modified)
etc_query-1.3.3
ext_com_connect_verify-0.1 (modified)
fha_time_diff-0.23 (modified)
ied_plugin_composer-1.2.1
kuo_file_stats-0.1
oui_cookie-1.0.0-BETA3
pap_comconnect-0.1.2 (modified)
pat_speeder-0.7.5
rah_external_output-1.0.4
rah_sitemap-1.3.0
rss_admin_db_manager-4.4
rvm_css-1.2
smd_if-0.91
smd_where_used-0.2
smd_wrap-0.20
spf_js-0.51
wet_opensearch-0.1
zem_redirect-1.2.1
.htaccess file contents:
------------------------
#neme2
#php versions
<FilesMatch \.php$>
#SetHandler php55-fcgi
#SetHandler php56-fcgi
#SetHandler php70-cgi
SetHandler php72-cgi
</FilesMatch>
# RewriteMap mapname "dbm:__TXP-ROOT/map.map"
# compression and cache control
<IfModule deflate_module>
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
<IfModule mod_headers.c>
Header set Connection keep-alive
Header unset ETag
FileETag None
Header unset P3P
Header append X-XSS-Protection "1; mode=block"
Header append X-Frame-Options "DENY"
Header append X-Content-Type-Options "nosniff"
Header set Cache-Control "no-transform"
Header append Content-Security-Policy "default-src 'self'; img-src 'self' data: * https://*; style-src 'self' 'unsafe-inline' ajax.googleapis.com platform.twitter.com https://ajax.googleapis.com https://fonts.googleapis.com https://platform.twitter.com; script-src 'self' www.google.com ajax.googleapis.com *.google-analytics.com https://www.google.com https://ajax.googleapis.com https://*.google-analytics.com https://*.twitter.com; frame-src *.youtube-nocookie.com https://*.youtube-nocookie.com *.twitter.com https://*.twitter.com twitter.com https://twitter.com http://*.vimeo.com https://*.vimeo.com http:/dev.colkides.com http://*.statemachines.eu"
</ifModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 15 days"
ExpiresByType text/html "access plus 10 seconds"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresDefault "access plus 1 month"
</IfModule>
#ErrorDocument 403 /403.php
Header append X-FRAME-OPTIONS "SAMEORIGIN"
#RewriteEngine on
#RewriteCond %{HTTP_HOST} ^neme.org [NC]
#RewriteRule ^(.*)$ http://www.neme.org/$1 [L,R=301]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# deny access to evil robots site rippers offline browsers and other nasty scum
# RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ADSARobot|aesop_com_spiderman|ah-ha|aktuelles|alexibot|almaden|amzn_assoc|Anarchie|anonymouse|ASPSeek|ASSORT|asterias|ATHENS|Atomz|attach|attach|attache|autoemailspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} backdoorbot|BackWeb|Bandit|BatchFTP|bdfetch|big.brother|bigfoot|BlackWidow|blowfish|bmclient|Boston\ Project|botalot|Bot\ mailto:craftbot@yahoo.com|BravoBrian\ SpiderEngine\ MarcoPolo|Buddy|builtbottough|Bullseye|bumblebee [NC,OR]
RewriteCond %{HTTP_USER_AGENT} capture|cheesebot|CherryPicker|ChinaClaw|CICC|clipping|Collector|Copier|copyrightcheck|cosmos|Crescent|Crescent\ Internet\ ToolPak|curl|Custo|cyberalert [NC,OR]
RewriteCond %{HTTP_USER_AGENT} DA$|Deweb|diagem|Digger|Digincore|Digimarc|DIIbot|DISCo|DISCoFinder|DISCo\ Pump|dittospyder|Downloader|Download\ Demon|Download\ Wonder|dragonfly|Drip|DSurf15a|DTS.Agent [NC,OR]
RewriteCond %{HTTP_USER_AGENT} EasyDL|ebingbong|eCatch|ecatch|ecollector|efp@gmx\.net|EirGrabber|EmailCollector|EmailSiphon|EmailWolf|erocrawler|exabot|Express\ WebPictures|ExtractorPro|EyeNetIE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} fastlwspider|FavOrg|Favorites\ Sweeper|Fetch|FEZhead|FileHound|FlashGet\ WebWasher|FlickBot|fluffy|flunky|frontpage|FrontPage [NC,OR]
RewriteCond %{HTTP_USER_AGENT} GalaxyBot|Generic|Getleft|GetRight|GetSmart|GetWeb!|GetWebPage|gigabaz|Girafabot|Go!Zilla|Go-Ahead-Got-It|GornKer|gotit|gotit|Go\!Zilla|Grabber|GrabNet|Grafula|Green\ Research|grub-client [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Harvest|harvest|hhjhj@yahoo|hloader|HMView|HomePageSearch|httpdown|httplib|http\ generic|httrack|HTTrack|humanlinks [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ia_archiver|IBM_Planetwide|ilsebot|imagefetch|Image\ Stripper|Image\ Sucker|IncyWincy|Indy*Library|Indy\ Library|infonavirobot|informant|infotekies|Ingelin|intelliseek|interget|InterGET|InternetLinkagent|internetseer|InternetSeer\.com|Internet\ Ninja|Iria|Irvine [NC,OR]
RewriteCond %{HTTP_USER_AGENT} JBH*agent|jennybot|jetcar|JetCar|JOC|JOC\ Web\ Spider|JustView|jyxobot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} kenjin|keyword|KWebGet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Lachesis|larbin|larbin|LeechFTP|leechftp|LexiBot|lexibot|lftp|Lftp|libweb|libwww|libwww-perl|likse|likse|Link|Link*Sleuth|linkscan|LINKS\ ARoMATIZED|LinkWalker|lnspiderguy|LWP|lwp|lwp-trivial [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Mac\ Finder|Mag-Net|mag-net|Mag-Net|Magnet|magnet|markwatch|Mass\ Downloader|MCspider|Memo|memo|Microsoft.URL|MIDown\ tool|miixpc|Mirror|Missigua\ Locator|mister.pix|Mister\ PiX|MMMtoCrawl\/UrlDispatcherLLL|moget|Mozilla*MSIECrawler|Mozilla.*Indy|Mozilla.*NEWT|MSFrontPage|MSIECrawler|MSProxy|MS\ FrontPage*|multithreaddb [NC,OR]
RewriteCond %{HTTP_USER_AGENT} nameprotect|nationaldirectory|navroad|Navroad|NearSite|NetAnts|NetCarta|netcraft|NetMechanic|netprospector|NetResearchServer|NetSpider|NetZIP|NetZippy|NetZip\ Downloader|Net\ Vampire|NEWT|nextgensearchbot|NICErsPRO|nimblecrawler|Ninja|NPBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Octopus|Offline\ Explorer|Offline\ Navigator|OpaL|Openfind|OpenTextSiteCrawler|OrangeBot|outfoxbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} PackRat|PageGrabber|papa|Papa\ Foto|pavuk|pavuk|pcbrowser|pcBrowser|PersonaPilot|php.?version.?tracker|Ping|PingALink|Pockey|propowerbot|prowebwalker|Proxy|psbot|psbot|PSurf|puf|Pump|PushSite [NC,OR]
RewriteCond %{HTTP_USER_AGENT} QRVA|queryn [NC,OR]
RewriteCond %{HTTP_USER_AGENT} RealDownload|realdownload|Reaper|reaper|recorder|Recorder|ReGet|replacer|RepoMonkey|rma|Robozilla|Rover|RPT-HTTPClient|Rsync|Scooter [NC,OR]
RewriteCond %{HTTP_USER_AGENT} SearchExpress|searchhippo|searchterms\.it|Second\ Street\ Research|Seeker|Shai|Siphon|sitecheck|sitecheck.internetseer.com|SiteSnagger|SlySearch|SmartDownload|snagger|Snake|snapbot|snoopy|sogou|SpaceBison|spankbot|spanner|Spegla|SpiderBot|sproose|SqWorm|Stripper|Sucker|SuperBot|SuperHTTP|SurfBot|SurfWalker|suzuran|Szukacz [NC,OR]
RewriteCond %{HTTP_USER_AGENT} takeout|tAkeOut|tarspider|teleport|Teleport\ Pro|telesoft|Templeton|thenomad|tighttwatbot|titan|TrueRobot|true_robot|turingos|turnitinbot|TV33_Mercator [NC,OR]
RewriteCond %{HTTP_USER_AGENT} UIowaCrawler|URLdispatcher|URLSpiderPro|URL_Spider_Pro|UtilMind [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Vacuum|vagabondo|vayala|vci|visibilitygap|VoidEYE|vspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} w3mir|WebAuto|WebBandit|Webclipping|webcollage|webcollector|WebCopier|webcraft@bea|webdevil|webdownloader|Webdup|WebEMailExtrac|WebFetch|WebGo\ IS|WebHook|Webinator|WebLeacher|WEBMASTERS|WebMiner|WebMirror|webmole|WebReaper|WebSauger|Website|Website\ eXtractor|Website\ Quester|WebSnake|Webster|WebStripper|websucker|webvac|webwalk|webweasel|WebWhacker|WebZIP|web\.by\.mail|Web\ Data\ Extractor|Web\ Downloader|Web\ Image\ Collector|Web\ Sucker|Wget|Whacker|whizbang|WhosTalking|Widow|widow|WISEbot|wisenutbot|WUMPUS|WUMPUS|Wweb|WWWOFFLE|wwwoffle [NC,OR]
RewriteCond %{HTTP_USER_AGENT} x-Tractor|xaldon|Xaldon\ WebSpider|Xenu|xenu|XGET|XoviBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Zeus|Zeus.*Webster|Zeus.*Webster|zyborg|^Mozilla$ [NC]
RewriteRule ^.* - [F,L]
# # hotlink protection
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?neme\.org/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?news\.neme\.org/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?cyprus\.neme\.org/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?forum\.neme\.org/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?hblack\.net/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*a9.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*altavista.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*ask.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*duckduckgo.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*google.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*yahoo.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*bing.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*baidu.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*excite.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*faganfinder.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*ixquick.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*microsofttranslator.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*msn.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*picsearch.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*tineye.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*wolframalpha.*$ [NC]
#RewriteCond %{HTTP_REFERER} !.*yandex.* [NC]
#RewriteCond %{HTTP_REFERER} !^http(s)?://([^.]+\.)?goo\.ne\.jp/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http(s)?://([^.]+\.)?archive\.org/.*$ [NC]
#RewriteRule .*\.(gif|jpg|png|svg)$ https://lh3.googleusercontent.com/-KDvIl3r2wdM/AAAAAAAAAAI/AAAAAAAAAAA/fZTmVSnqmxA/s120-c/photo.jpg [R,NC,L]
#</ifModule>
#RewriteRule ^/sitemap/ /texts/ [R=301,L]
RedirectMatch 301 ^/main/?(.+)?$ http://www.neme.org/$1
RedirectMatch 301 /forum/?(.+)?$ http://forum.neme.org/$1
Redirect 301 /reblog/out/ http://www.neme.org/
# Redirect 301 /sitemap/ http://www.neme.org/
Redirect 301 /arts_info/ http://news.neme.org/arts_info/
Redirect 301 /archives/ http://news.neme.org/archives/
Redirect 301 /archives2005/ http://news.neme.org/archives2005/
Redirect 301 /archives2006/ http://news.neme.org/archives2006/
Redirect 301 /archives2007/ http://news.neme.org/archives2007/
Redirect 301 /archives2008/ http://news.neme.org/archives2008/
Redirect 301 /archives2009/ http://news.neme.org/archives2009/
Redirect 301 /archives2010/ http://news.neme.org/archives2010/
Redirect 301 /archives2011/ http://news.neme.org/archives2011/
Redirect 301 /archives2012/ http://news.neme.org/archives2012/
Redirect 301 /archives2013/ http://news.neme.org/archives2013/
Redirect 301 /archives2014/ http://news.neme.org/archives2014/
Redirect 301 /archives2015/ http://news.neme.org/archives2015/
Redirect 301 /archives2016/ http://news.neme.org/archives2016/
Redirect 301 /calls/ http://news.neme.org/calls/
Redirect 301 /category/calls http://news.neme.org/calls/
Redirect 301 /article/ /texts/
Redirect 301 /call/ http://news.neme.org/calls/
Redirect 301 /category/intransition /events/in-transition-cyprus-2006
Redirect 301 /category/ideodrome2006 /events/ideodrome-2006
Redirect 301 /about/about-neme /about/
Redirect 301 /185/2030 http://news.neme.org/texts/2030
Redirect 301 /nac/neme-arts-centre /nac/
Redirect 301 /workshops/workshops /workshops/
Redirect 301 /main/42/open-city-stepping-in-from-the-edge /texts/open-city
Redirect 301 /185/2030 /texts/2030
Redirect 301 /events/my-name-is-janez-jansa /events/improper-names
Redirect 301 /slimstat2/ /
#RewriteEngine on
#RewriteCond %{HTTP_REFERER} ^http\://.* bit\.ly/2hDdcMe [NC,OR]
#RewriteCond %{HTTP_REFERER} ^http\://.* bit\.ly/2hsQ0zD [NC,OR]
#RewriteCond %{HTTP_REFERER} ^http\://.* bit\.ly/2gK7XFW [NC,OR]
#RewriteRule .* - [F]
RewriteEngine On
#RewriteCond %{HTTP_REFERER} .*zzz.com.*$ [NC, OR]
#RewriteCond %{HTTP_REFERER} .*kwangjubiennale.org.*$ [NC]
#RewriteRule ^(.*)$ http://www.neme.org/kwangjubiennale.html
RewriteCond %{REQUEST_URI} (bitrix|ckeditor|ckfinder|connector|connectors|wordpress|blog|kcfinder|register|elfinder|trackback|fallback|gastenboek|guestbook|gaestebuch|bigdump|dump|noscript|editor|FileZilla|fckeditor|Tester|uploadTester|upload|wp|wp-admin|rob-chiu|wp-content|webmanage|convert|manage|eshop|jomestate|joomla|templates|tinymce|magmi|login|cms|console|udd|ycportal|cgi|dedecms|phpcms|oecms|CHANGELOG|lazycms|drupal|mail|webmail|dede|utility|wp-login|bbs|utility|convert|xmlrpc|plus) [NC]
RewriteRule .* http://127.0.0.1/ [R=301,L]
#RewriteCond %{REMOTE_ADDR} 23\.108\.34\.202
#RewriteRule .* http://www.neme.org/indexthief.htm [R,L]
#Options +FollowSymlinks
#RewriteEngine on
#RewriteCond %{REMOTE_HOST} !^23\.108\.34\.202
#RewriteRule \.html$ /indexthief.htm [R=302,L]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} 1\.215\.226\.190
RewriteRule .* http://www.neme.org/indexthief.htm [R,L]
#Options +FollowSymlinks
#RewriteEngine on
#RewriteCond %{REMOTE_HOST} 84\.109\.137\.242
#RewriteRule .* http://www.neme.org/indexwhy.htm [R,L]
Order Deny,Allow
Deny from 84.109.137.242
Deny from 82.80.230.228
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
#RewriteCond %{QUERY_STRING} m=any&q=1
#RewriteRule - [F]
RewriteCond %{QUERY_STRING} ^m\=any$- [NC]
RewriteCond %{QUERY_STRING} ^m\=any\&q=1$- [NC]
RewriteRule ^ - [F]
# block QUERY_STRINGs
#<IfModule mod_rewrite.c>
# RewriteEngine On
# RewriteCond %{QUERY_STRING} ^.*(localhost|loopback|127\.0\.0\.1).* [NC,OR]
# RewriteCond %{QUERY_STRING} ^.*(\.|\*|;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).* [NC,OR]
# RewriteCond %{QUERY_STRING} ^.*(md5|benchmark|union|select|insert|cast|set|declare|drop|update).* [NC]
# RewriteRule ^(.*)$ - [F,L]
#</IfModule>
# turn off ipv6
#Listen 0.0.0.0:80
AddDefaultCharset utf-8
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteBase /relative/web/path/
# json
# RewriteRule ^feed.json$ ./index.php?kuo_json_feed
# RewriteRule ^([\-a-zA-Z0-9]+)-feed.json$ ./index.php?kuo_json_feed=$1
RewriteRule ^sitemap.xml$ ./sitemap/ [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
# SVG
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
# RewriteCond %{QUERY_STRING} ^m\=any$- [F]
# RewriteRule ^ - [F]
# This prevents web browsers or spiders from seeing your .htaccess directives:
ServerSignature Off
Options All -Indexes
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)\." - [F]
#<Files .htaccess>
#deny from all
#</Files>
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RedirectMatch 404 /\..*$
<Files config.php>
deny from all
</Files>
------------------------
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#130 2018-09-08 10:21:18
Re: Testers needed: flat development (4.7+ only)
Jean-Pol: no clue :-/
Yiannis: try to disable pat_speeder
? Edit: and put <txp:header />
after <?xml version="1.0" encoding="UTF-8"?>
Offline
#131 2018-09-08 14:27:07
Re: Testers needed: flat development (4.7+ only)
I’m using pat_speeder v1.1
with my build-in sitemap (as you try to accomplish) without any kind of problems: https://www.cara-tm.com/sitemap-xml
(https://github.com/cara-tm/RSS-Sitemap-for-Textpattern-CMS)
Last edited by Pat64 (2018-09-08 14:40:22)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
#132 2018-09-08 14:55:54
Re: Testers needed: flat development (4.7+ only)
etc wrote #313924:
<txp:header />
after<?xml version="1.0" encoding="UTF-8"?>
That did it. Thanks so much Oleg!
The problem now is with the htaccess. This does not work
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteBase /relative/web/path/
RewriteRule ^sitemap.xml$ ./sitemap/ [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
# SVG
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline