thanks a million! my website is not loading now开发者_JAVA百科 .please. please.please!
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Well, now that i solved the loading page problem. I'll explain myself better...
all i wanted to do is those redirections:
http://www.domain.com/ -> http://domain.com/
http://domain.com -> http://domain.com/
http://domain.com/article/55/any-name-here-wont-even-check -> http://domain.com/page.php?id=55
Mi go was (the last redirect it's an old->new domain name. It's also done through cPanel):
RewriteEngine On
#Options +FollowSymLinks
RewriteBase /
RewriteRule ^article/(.+)/(.+) page.php?id=$1
RewriteCond %{HTTP_HOST} ^oldname.com$
RewriteCond %{REQUEST_URI} ^oldname.com [NC]
RewriteRule ^(.*)$ http://newname.com/$1 [L,R=301]
Is correct? if so, any idea what could be wrong?
Try this out and see if it works for you.
RewriteEngine on
RwritteBase /
RewriteRule ^article/([^/\.]+)(/.*)?$ page.php?id=$1
RewriteCond %{HTTP_HOST} ^oldname\.com
RewriteCond %{REQUEST_URI} ^oldname\.com
RewriteRule (.*) http://newname.com/$1 [R=301,QSA,L]
精彩评论