Jump to content
Sign in to follow this  
MasterGipy

Erro no .htaccess

Recommended Posts

MasterGipy

Estou a tentar usar SEO no meu site...

Para que em vez de ter no link example.com/index.php?pageid=2

tenha example.com/news/

Este é o meu .htaccess

Options +Indexes +FollowSymLinks



IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*



<Limit GET POST>
order allow,deny
allow from all
</Limit>

<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>


DirectoryIndex index.php

RewriteEngine on



RewriteRule notfound/ index.php?pageid=notfound [NC]



RewriteRule setlang/([a-zA-Z0-9]+) index.php?setlang=$1 [NC]

RewriteRule addnews/ index.php?type=1 [NC]

RewriteRule mnews/([a-zA-Z0-9]+) index.php?type=2&newid=$1 [NC]

RewriteRule dnews/([a-zA-Z0-9]+) index.php?type=3&newid=$1 [NC]

RewriteRule news/([a-zA-Z0-9]+) index.php?type=4&newid=$1 [NC]

RewriteRule news/ index.php [NC]

RewriteRule ranks/ index.php?pageid=1 [NC]

RewriteRule servers/ index.php?pageid=2 [NC]

RewriteRule register/ index.php?pageid=3 [NC]

RewriteRule logout/ index.php?pageid=4 [NC]

RewriteRule search/ index.php?pageid=6 [NC]

RewriteRule msgs/ index.php?pageid=7 [NC]

RewriteRule webchat/ index.php?pageid=9 [NC]

RewriteRule options/ index.php?pageid=10 [NC]

RewriteRule rules/ index.php?pageid=11 [NC]

RewriteRule reports/ index.php?pageid=12 [NC]

RewriteRule helpcmds/ index.php?pageid=13 [NC]

RewriteRule downloads/ index.php?pageid=14 [NC]

RewriteRule autodemo/ index.php?pageid=15 [NC]

RewriteRule lang/ index.php?pageid=17 [NC]

RewriteRule sponsor/ index.php?pageid=18 [NC]

RewriteRule bans/ index.php?pageid=19 [NC]



RewriteRule tutorial/ tuto.php [NC]



RewriteRule readmsg/([a-zA-Z0-9]+) index.php?pageid=7&msgid=$1 [NC]

RewriteRule delmsg/([a-zA-Z0-9]+) index.php?pageid=7&delmsgid=$1 [NC]



RewriteRule game/([a-zA-Z0-9]+) index.php?pageid=8&matchid=$1 [NC]



RewriteRule remfriend/([a-zA-Z0-9]+) index.php?pageid&remfriend=$1 [NC]

RewriteRule addfriend/([a-zA-Z0-9]+) index.php?pageid&addfriend=$1 [NC]

RewriteRule members/(.+) index.php?pageid=5&auth=$1 [NC]



RewriteRule membersremban/(.+)/(.+) index.php?pageid=5&auth=$1&banid=$2

RewriteRule votepoll/(.+)/(.+) index.php?pollid=$1&votedid=$2

RewriteRule recover/(.+)/(.+) index.php?email=$1&code=$2





<Files .htaccess>
order allow,deny
deny from all
</Files>


Mas no server dá me o erro 500 - Internal Server Error

E não percebo porque...é que este script funcionava bem noutro servidor...

Gostava de saber se a culpa é minha ou não, para reclamar com o provedor do host xD

Share this post


Link to post
Share on other sites
MasterGipy

Que modulo é? Posso ver isso onde?

É que é a primeira vez que trabalho com SEO....

Share this post


Link to post
Share on other sites
MasterGipy

Como meto isso compativel com o servidor?

Nem percebo o que está mal...

Alguém me pode ajudar em alguma solução?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.