We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

.htaccess help - Redirect default page. | Forum

Dean L
Dean L Feb 13 '13
Hi,

I've made a custom page which means I no longer want my main domain to be the landing page, here is an example of what I want to do:

mysite.com

To have a landing page of

mysite.com/new-page

All the ways I've tried has led to an error of 'This website is trying to redirect in a way that will never complete'.

Thanks :-)
Dean L
Dean L Feb 13 '13
OK, this is odd...

If I set the redirect to: (using 403 as an example, but it could be any page)

Redirect /403 http://mysite.com/new-page

All 403's are directed to the new page no problem.

If I set it like this:

Redirect / http://mysite.com/new-page

Result in address bar is: mysite.com/new-pagenew-pagenew-pagenew-page - Won't complete.
Dean L
Dean L Feb 13 '13
RewriteCond %{HTTP_HOST} mysite.com$ [NC]
RewriteRule ^(.*)$ http://mysite.com/new-page [R=301,L]

Closest so far. This doesn't generate the page repeats in the address bar but still the page says it will never complete... Urgh!