Thanks for your time guys, really appreciate it!
Originally Posted by
mc12345678
Code:
RewriteRule ^index\.php?main_page=page&id=25$ /blog/table-tennis-rules? [L, R=301]
That causes an internal server error.
Here is the rest of my .htaccess
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^tibhar\.com\.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.tibhar\.com\.au$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/tabletennisshop\.com\.au\/index\.php\?main_page\=page\&id\=44" [R=301,L]
RewriteCond %{HTTP_HOST} ^xiom\.com\.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.xiom\.com\.au$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/tabletennisshop\.com\.au\/index\.php\?main_page\=page\&id\=51" [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
The existing code refers to two domains (xiom and tibhar) being redirected to a specific page on the site (done through cpanel, looks messy I know), and the last bit redirects http to https.
Bookmarks