301 Redirects: All works except...(help, coding...
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
Thanks to everyone who's helped with 301 redirects to date.
I figured I'd start a new thread to ask about one of the finer points of 301 redirects in iWeb.
To summarize:
To add a 301 redirect in iWeb, you add an .htaccess file to the root of your directory with the following code:
redirect 301 /page1.html http://www.mydomain.com/page2.html
or
redirect 301 /page1 http://www.mydomain.com/page2.html
That works!
EXCEPT...
the page it lands on is:
http://www.mydomain.com/page2.html/
Note the backslash at the end of the URL in the arrival page.
That @#$# backslash makes the iWeb page not present properly.
You remove the backslash, it works.
You keep it in (e.g., everyone in the world who clicks on your original link and doesn't know to alter the URL of the messed up arrival page), and you get a page of gobbledygook - no pictures, dot for navbar, overlapping textmess.
So....
Does anyone know how to write the line in the 301 redirect so the arrival page ends in an iWeb friendly:
http://www.mydomain.com/page2.html
NOT
http://www.mydomain.com/page2.html/
???
Thanks in advance if you have the answer to this chestnut.
-Matt
5 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0
- 0
- 0