Redirect for SEO Purposes
2 posts
• Page 1 of 1
- blandydoes
- Posts: 4
- Joined: 18 Dec 2012, 09:14
Redirect for SEO Purposes
Hello,
I am finding duplicate content an issue and would like to setup a redirect. I am running v3.
So far I have a redirect for non WWW to point to WWW like this:
[ISPAI_Rewrite]
#Redirect Non WWW to WWW
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
Now I would like to redirect www.mysite.co.uk/index.php to www.mysite.co.uk
Can anyone help?
If possible I would also like to know how to create 301 redirects.
Thanks in advance.
I am finding duplicate content an issue and would like to setup a redirect. I am running v3.
So far I have a redirect for non WWW to point to WWW like this:
[ISPAI_Rewrite]
#Redirect Non WWW to WWW
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
Now I would like to redirect www.mysite.co.uk/index.php to www.mysite.co.uk
Can anyone help?
If possible I would also like to know how to create 301 redirects.
Thanks in advance.
- blandydoes
- Posts: 4
- Joined: 18 Dec 2012, 09:14
Re: Redirect for SEO Purposes
Done...
- Code: Select all
[ISAPI_Rewrite]
#Redirect Non WWW to WWW
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
#Redirect index.php to root
RewriteEngine on
RewriteBase /
RewriteRule ^index\.php$ http://www.aspectexhibitions.co.uk/ [NC,R=301,L]
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 55 guests