← Desenvolvimento

.htaccess não deixa abrir página

Lida 3464 vezes

Offline

JoaoCardoso 
Membro
Mensagens 1519 Gostos 1
Feedback +29

Troféus totais: 34
Trófeus: (Ver todos)
Level 6 Tenth year Anniversary Apple User Mobile User Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter

Boas,

Ao aceder a xpto.com/mod/online.php ele mostra-me sempre o site principal, não mostrando o conteúdo do ficheiro... o que leva a pensar que pode ser alguma restrição a nível do htaccess , como posso dar acesso a esse ficheiro?

Cumpts
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Qual o conteudo do .htaccess?
Offline

JoaoCardoso 
Membro
Mensagens 1519 Gostos 1
Feedback +29

Troféus totais: 34
Trófeus: (Ver todos)
Level 6 Tenth year Anniversary Apple User Mobile User Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter

Código: [Seleccione]
RewriteEngine On   


RewriteRule sitemap-(.*)-(.*)\.xml$ /sitemap.php?type=$1&id=$2

RewriteRule ^sitemap.xml$ /sitemap.php [L]                                                                                                               

                                                                                                                                             

# Show ad                                                                                                                                     

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html        /index.php?view=showad&adid=$7&cityid=$1 [QSA]

                                                                                                                                             

# Ads                                                                                                                                         

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/page([0-9]*)\.html            /index.php?view=ads&catid=$3&subcatid=$5&cityid=$1&page=$7 [QSA]

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?                    /index.php?view=ads&catid=$3&subcatid=$5&cityid=$1 [QSA]

                                                                                                                                             

# Ads by cat                                                                                                                                 

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?                                /index.php?view=ads&catid=$3&cityid=$1 [QSA]

                                                                                                                                             

# Show event                                                                                                                                 

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events(/(([0-9]+)-([0-9]+)-([0-9]+)))?/([0-9]+)([-_][^/]*)?\.html            /index.php?view=showevent&date=$4&adid=$8&cityid=$1 [QSA]

                                                                                                                                             

# Events on date                                                                                                                             

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events/(([0-9]+)-([0-9]+)-([0-9]+))/page([0-9]*)\.html                /index.php?view=events&date=$3&cityid=$1&page=$7 [QSA]

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events/(([0-9]+)-([0-9]+)-([0-9]+))                            /index.php?view=events&date=$3&cityid=$1 [QSA]

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/events                                        /index.php?view=events&cityid=$1 [QSA]

                                                                                                                                             

# Show image                                                                                                                                 

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/([^/]+)/([0-9]+)([-_][^/]*)?\.html                        /index.php?view=showimg&posterenc=$3&imgid=$4&cityid=$1 [QSA]

                                                                                                                                             

# Images by user, paged                                                                                                                       

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/([^/]+)/page([0-9]+)\.html                            /index.php?view=imgs&posterenc=$3&cityid=$1&page=$4 [QSA]

                                                                                                                                             

# Top Images, paged                                                                                                                           

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/page([0-9]+)\.html                                /index.php?view=imgs&cityid=$1&page=$3 [QSA]

                                                                                                                                             

# Images by user                                                                                                                             

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images/([^/]+)                                    /index.php?view=imgs&posterenc=$3&cityid=$1 [QSA]

                                                                                                                                             

# Top Images                                                                                                                                 

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/images                                        /index.php?view=imgs&cityid=$1 [QSA]

                                                                                                                                             

# Quick ad/event/image                                                                                                                       

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/showpost/([0-9]+)([-_][^/]*)?\.html                            /index.php?view=showad&adid=$3&cityid=$1 [QSA]

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/showevent/([0-9]+)([-_][^/]*)?\.html                            /index.php?view=showevent&adid=$3&cityid=$1 [QSA]

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?/showimage/([0-9]+)([-_][^/]*)?\.html                            /index.php?view=showimg&imgid=$3&cityid=$1 [QSA]

                                                                                                                                             

# City/Region                                                                                                                                 

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?                                            /index.php?view=main&cityid=$1 [QSA]

RewriteRule ^([-]?[0-9]+)([-_][^/]*)?                                            /index.php?view=main&cityid=$1 [QSA]


RewriteRule ^keyword_(.*)_([-0-9]+).html$ /index.php?keyword=keyword&search=$1&cityid=$2&view=ads




RewriteRule ^account.html$  /index.php?view=userpanel

RewriteRule ^account.html&action=(.*)$  /index.php?view=userpanel&action=$1

RewriteRule ^login.html$  /index.php?view=login

RewriteRule ^signup.html$  /index.php?view=signup

RewriteRule ^profile-([-0-9]+).html$  /index.php?view=profile&id=$1

RewriteRule ^profile-([-0-9]+)-page-([-0-9]+).html$  /index.php?view=profile&id=$1&page=$2










done, tanks
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Assim a primeira vista parece ok
Já mudaste o nome ao .htaccess e tentaste ir a pagina?
Offline

JoaoCardoso 
Membro
Mensagens 1519 Gostos 1
Feedback +29

Troféus totais: 34
Trófeus: (Ver todos)
Level 6 Tenth year Anniversary Apple User Mobile User Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter

Se mudar da logo Not Found no site
Offline

JoaoCardoso 
Membro
Mensagens 1519 Gostos 1
Feedback +29

Troféus totais: 34
Trófeus: (Ver todos)
Level 6 Tenth year Anniversary Apple User Mobile User Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter

ninguém faz uma pequena ideia?