Hi, I tried the code and it works for what I asked for, but there's a problem.
- Code: Select all
AddDefaultCharset iso-8859-1
# BEGIN Gruppo Modulo Rewrite
<IfModule mod_rewrite.c>
RewriteEngine on
# Change following path
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)$ $1/ [L]
RewriteRule ^([A-Za-z0-9-]+)/$ index.php?act=$1&tid=$1 [L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)/pagina-([0-9]+)$ $1/pagina-$2/ [L]
RewriteRule ^([A-Za-z0-9-]+)/pagina-([0-9]+)/$ index.php?act=$1&tid=$1&page=$2 [L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ $1/$2/ [L]
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/$ index.php?act=telefilm&tid=$1&mod=$2 [L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/stagione-([0-9]+)$ $1/$2/stagione-$3/ [L]
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/stagione-([0-9]+)/$ index.php?act=telefilm&tid=$1&mod=$2&season=$3 [L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ $1/$2/$3/ [L]
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/$ index.php?act=show&slug=$3 [L]
</IfModule>
# END Gruppo Modulo Rewrite
# Qui redirect per telefilm e notizie
Redirect 301 /greeek http://www.***.com/greek/
# Error Pages
ErrorDocument 401 /?act=error&e=401
ErrorDocument 403 /?act=error&e=403
ErrorDocument 404 /?act=error&e=404
ErrorDocument 500 /?act=error&e=500
RewriteEngine on
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName telefilmsnetwork.com
AuthUserFile /home/telefilm/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/telefilm/public_html/_vti_pvt/service.grp
As you can see:
# Qui redirect per telefilm e notizie
Redirect 301 /greeek
http://www.***.com/greek/
that's your code, and this is what happens:
I go towww.***.com/greeek/news/
and it redirect me to the right page, but the url is this:
http://www.***.com/greek//news/?act=tel ... k&mod=news
How can I solve this problem? Thanks in advance, Paolo