<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[errore nel file htaccess?]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, ho un problema che mi sta facendo impazzire.<br />
Vorrei implementare un sito di video sharing e sto utilizzando un cms che fa proprio questo, ma se ad esempio apro il link www-videonair-com/videos  da errore 404 ma se invece aggiungo al link www-videonair-com/videos.php o tutte le altre pagine lincate sulle home aggiungendo il suffisso .php funziona tutto.<br />
Il problema credo che sia sulle impostazioni del mod rewrite perchè ci sono molti altri siti che utilizzano il cms implementato sul mio dominio e funzionano correttamente senza il suffisso .php alla fine dei link.<br />
Allego il file .htaccess ed il file loader.php e chiedo se qualcuno sa una soluzione. Aiutooo</p>
<p dir="auto">htaccess</p>
<pre><code># Comment the 2 lines below if the server returns 500 errors!
# Options -Indexes
# Options +FollowSymLinks
#Uncomment following lines if you want to use image caching!
&lt;IfModule mod_expires.c&gt;
  ExpiresActive On
  ExpiresDefault A1209600
  ExpiresByType text/html A1
&lt;/IfModule&gt;
# Uncomment following lines if Apache doesnt support MultiViews!
&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
 
 # Uncomment the 2 lines below if you are using www-domain-com
 # as the baseurl for the site and users access your site 
 # via domain.com (THIS IS REQUIRED FOR JQUERY TO WORK)
 
 RewriteCond %{HTTP_HOST} ^videonair.com [NC]
 RewriteRule ^(.*)$ h t t p : / /  www-videonair-com/$1 [L,R=301] 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* loader.php [L,QSA]
&lt;/IfModule&gt;
# Edit below lines and set to
# ErrorDocument CODE /RELATIVE/error.php
# If the script is installed in the default document
# root then relative is null.
#ErrorDocument 401 /error.php
#ErrorDocument 403 /error.php
#ErrorDocument 404 /error.php
</code></pre>
<p dir="auto">file loader.php</p>
<pre><code>&lt;?php
//die('Only enable this script if you dont have support for MultiViews');
$relative = '';
$loaders  = array(
    'ajax' =&gt; 1,
    'album' =&gt; 1,
    'albums' =&gt; 1,
    'blog' =&gt; 1,
    'blogs' =&gt; 1,
    'captcha' =&gt; 1,
    'categories' =&gt; 1,
    'community' =&gt; 1,
    'confirm' =&gt; 1,
    'error' =&gt; 1,
    'feedback' =&gt; 1,
    'feeds' =&gt; 1,
    'game' =&gt; 1,
    'games' =&gt; 1,
    'index' =&gt; 1,
    'invite' =&gt; 1,
    'loader' =&gt; 1,
    'login' =&gt; 1,
    'logout' =&gt; 1,
    'lost' =&gt; 1,
    'mail' =&gt; 1,
    'notice' =&gt; 1,
    'notices' =&gt; 1,
    'photo' =&gt; 1,
    'requests' =&gt; 1,
    'search' =&gt; 1,
    'signup' =&gt; 1,
    'static' =&gt; 1,
    'stream' =&gt; 1,
    'upload' =&gt; 1,
    'user' =&gt; 1,
    'users' =&gt; 1,
    'video' =&gt; 1,
    'videos' =&gt; 1,
 'edit' =&gt; 1
);
$query      = ( isset($_SERVER['QUERY_STRING']) ) ? $_SERVER['QUERY_STRING'] : NULL;
$request    = str_replace($relative, '', $_SERVER['REQUEST_URI']);
$request    = str_replace('?' .$query, '', $request);
$request    = explode('/', trim($request, '/'));
if (isset($request['0'])) {
    $page   = $request['0'];
    if (isset($loaders[$page])) {
        require $page. '.php';
    } else {
  header('HTTP/1.0 404 Not Found');
    die();
 }
} else {
 header('HTTP/1.0 404 Not Found');
    die();
}
?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/186186/errore-nel-file-htaccess</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 00:16:47 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/186186.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Mar 2013 18:04:57 GMT</pubDate><ttl>60</ttl></channel></rss>