serrano 0 Report post Posted April 26, 2011 Olá, Tenho um site onde estou a utilizar um sistema de rede social, social engine. Queria fazer o meu proprio index, ou seja, fazer eu a página que os visitantes vem caso não estejam ligados. Tenho um ficheiro chamado hindex.php, o que realmente queria era substituir o url como no exemplo em baixo.: http://www.meusite.com/hindex.php'>http://www.meusite.com/hindex.php por http://www.meusite.com/hindex o sistema ja tem um .htaccess, ja fiz aqui umas pesquisas e várias tentativas mas não consegui o que queria. Vou deixar aqui o codigo ja existente no .htaccess. # $Id: .htaccess 7539 2010-10-04 04:41:38Z john $ <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On # Get rid of index.php RewriteCond %{REQUEST_URI} /index\.php RewriteRule (.*) index.php?rewrite=2 [L,QSA] # Rewrite all directory-looking urls RewriteCond %{REQUEST_URI} /$ RewriteRule (.*) index.php?rewrite=1 [L,QSA] # Try to route missing files RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} public\/ [OR] RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$ RewriteRule . - [L] # If the file doesn't exist, rewrite to index RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA] </IfModule> # sends requests /index.php/path/to/module/ to "index.php" # AcceptPathInfo On # @todo This may not be effective in some cases FileETag Size Será que haverá solução para isto? Abraços. Share this post Link to post Share on other sites
overblue 0 Report post Posted May 18, 2011 é isto que procuras? http://miguellopes.net/remover-extensoes-de-ficheiros-com-htaccess/ http://miguellopes.net/ | https://twitter.com/overblue Share this post Link to post Share on other sites