{"id":352,"date":"2016-06-09T23:21:05","date_gmt":"2016-06-10T03:21:05","guid":{"rendered":"https:\/\/www.ccrossan.com\/?p=352"},"modified":"2016-06-09T23:21:05","modified_gmt":"2016-06-10T03:21:05","slug":"troubleshooting-owncloud-index-php","status":"publish","type":"post","link":"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/","title":{"rendered":"Troubleshooting OwnCloud index.php"},"content":{"rendered":"\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=crossan007\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n<p>Sometimes OwnCloud includes &#8220;index.php&#8221; in the shared links. \u00a0It&#8217;s annoying and ugly. \u00a0Here&#8217;s some things to check:<\/p>\n<ol>\n<li>Is mod rewrite enabled in the apache config?\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;Directory \/var\/www\/html\/owncloud\/&gt;\r\n Options Indexes FollowSymLinks MultiViews\r\n AllowOverride All\r\n Order allow,deny\r\n Allow from all\r\n &lt;IfModule mod_dav.c&gt;\r\n  Dav off\r\n  &lt;\/IfModule&gt;\r\n SetEnv HOME \/var\/www\/html\/owncloud\r\n SetEnv HTTP_HOME \/var\/www\/html\/owncloud\r\n&lt;\/Directory&gt;\r\n<\/pre>\n<\/li>\n<li>Is the .htaccess correct? \u00a0The ###DO NOT EDIT### Section must contain this line (Generally the last line in the IfModule for mod_rewrite\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nRewriteRule .* index.php [PT,E=PATH_INFO:$1]\r\n<\/pre>\n<\/li>\n<li>.htaccess must also contain this block for the web app to generate URLs without &#8220;index.php&#8221;\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;IfModule mod_rewrite.c&gt;\r\n  RewriteBase \/\r\n  &lt;IfModule mod_env.c&gt;\r\n    SetEnv front_controller_active true\r\n    &lt;IfModule mod_dir.c&gt;\r\n      DirectorySlash off\r\n    &lt;\/IfModule&gt;\r\n  &lt;\/IfModule&gt;\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<\/li>\n<\/ol>\n<p>Those are my findings for making sure OwnCloud URLs stay pretty.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes OwnCloud includes &#8220;index.php&#8221; in the shared links. \u00a0It&#8217;s annoying and ugly. \u00a0Here&#8217;s some things to check: Is mod rewrite enabled in the apache config? Is the .htaccess correct? \u00a0The ###DO NOT EDIT### Section must contain this line (Generally the last line in the IfModule for mod_rewrite .htaccess must also contain this block for the &hellip; <a href=\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Troubleshooting OwnCloud index.php<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[138],"tags":[97,154,25,152,39,153],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Troubleshooting OwnCloud index.php - Charles&#039; Blog\" \/>\n<meta property=\"og:description\" content=\"Sometimes OwnCloud includes &#8220;index.php&#8221; in the shared links. \u00a0It&#8217;s annoying and ugly. \u00a0Here&#8217;s some things to check: Is mod rewrite enabled in the apache config? Is the .htaccess correct? \u00a0The ###DO NOT EDIT### Section must contain this line (Generally the last line in the IfModule for mod_rewrite .htaccess must also contain this block for the &hellip; Continue reading Troubleshooting OwnCloud index.php &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Charles&#039; Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-10T03:21:05+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"crossan007\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#website\",\"url\":\"https:\/\/crossan007.dev\/blog\/\",\"name\":\"Charles&#039; Blog\",\"description\":\"SharePoint | PowerShell | Exchange | SCCM | Ubuntu | PHP | JavaScript | A\/V Live Production | More...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crossan007.dev\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/#webpage\",\"url\":\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/\",\"name\":\"Troubleshooting OwnCloud index.php - Charles&#039; Blog\",\"isPartOf\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/#website\"},\"datePublished\":\"2016-06-10T03:21:05+00:00\",\"dateModified\":\"2016-06-10T03:21:05+00:00\",\"author\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979\"},\"breadcrumb\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crossan007.dev\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting OwnCloud index.php\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979\",\"name\":\"crossan007\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g\",\"caption\":\"crossan007\"},\"url\":\"https:\/\/crossan007.dev\/blog\/author\/crossan007\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/","og_locale":"en_US","og_type":"article","og_title":"Troubleshooting OwnCloud index.php - Charles&#039; Blog","og_description":"Sometimes OwnCloud includes &#8220;index.php&#8221; in the shared links. \u00a0It&#8217;s annoying and ugly. \u00a0Here&#8217;s some things to check: Is mod rewrite enabled in the apache config? Is the .htaccess correct? \u00a0The ###DO NOT EDIT### Section must contain this line (Generally the last line in the IfModule for mod_rewrite .htaccess must also contain this block for the &hellip; Continue reading Troubleshooting OwnCloud index.php &rarr;","og_url":"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/","og_site_name":"Charles&#039; Blog","article_published_time":"2016-06-10T03:21:05+00:00","twitter_misc":{"Written by":"crossan007","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/crossan007.dev\/blog\/#website","url":"https:\/\/crossan007.dev\/blog\/","name":"Charles&#039; Blog","description":"SharePoint | PowerShell | Exchange | SCCM | Ubuntu | PHP | JavaScript | A\/V Live Production | More...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crossan007.dev\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/#webpage","url":"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/","name":"Troubleshooting OwnCloud index.php - Charles&#039; Blog","isPartOf":{"@id":"https:\/\/crossan007.dev\/blog\/#website"},"datePublished":"2016-06-10T03:21:05+00:00","dateModified":"2016-06-10T03:21:05+00:00","author":{"@id":"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979"},"breadcrumb":{"@id":"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crossan007.dev\/blog\/linux\/troubleshooting-owncloud-index-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crossan007.dev\/blog\/"},{"@type":"ListItem","position":2,"name":"Troubleshooting OwnCloud index.php"}]},{"@type":"Person","@id":"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979","name":"crossan007","image":{"@type":"ImageObject","@id":"https:\/\/crossan007.dev\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g","caption":"crossan007"},"url":"https:\/\/crossan007.dev\/blog\/author\/crossan007\/"}]}},"_links":{"self":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/352"}],"collection":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":3,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":355,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/352\/revisions\/355"}],"wp:attachment":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}