Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
301 Redirect
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- 301 Redirect
301 Redirect
20-07-2009 3:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I want to redirect a page which has been deleted and now gives 404 to a new page on the same site.
Have entered the following format into an htaccess file and uploaded to the root.
Redirect 301 /olddirectory/oldfile.html http://mysite.co.uk/newdirectory/newfile.html
However it does not work.
Only other instruction in the htaccess file is the error not found file which works ok.
I think this is a relatively simple problem but can't find the answer.
Help would be appreciated.
Thanks
Have entered the following format into an htaccess file and uploaded to the root.
Redirect 301 /olddirectory/oldfile.html http://mysite.co.uk/newdirectory/newfile.html
However it does not work.
Only other instruction in the htaccess file is the error not found file which works ok.
I think this is a relatively simple problem but can't find the answer.
Help would be appreciated.
Thanks
Message 1 of 3
(1,126 Views)
2 REPLIES 2
Re: 301 Redirect
20-07-2009 6:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just checked my own Redirect 301 and am guessing you might need to use http://www.mysite rather than just http://mysite. The other not so obvious problem could be the that either file is incorrectly named as the names are case sensitive.
Message 2 of 3
(261 Views)
Re: 301 Redirect
21-07-2009 12:01 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi there,
Is the request you are rewriting correct, i.e. the path has to start from the root of your website, usually your htdocs directory.
e.g.
If I have the following structure:
If I want to redirect www.mysite.com/stuff/someotherstuff.html to google using htdocs/stuff/.htaccess I'd need to put something like:
and NOT
See what I mean?
HTH
Is the request you are rewriting correct, i.e. the path has to start from the root of your website, usually your htdocs directory.
e.g.
If I have the following structure:
htdocs/
htdocs/index.html
htdocs/stuff
htdocs/stuff/.htaccess
htdocs/stuff/index.html
If I want to redirect www.mysite.com/stuff/someotherstuff.html to google using htdocs/stuff/.htaccess I'd need to put something like:
Redirect 301 /stuff/someotherstuff.html http://google.com/
and NOT
Redirect 301 someotherstuff.html http://google.com/
See what I mean?
HTH
Message 3 of 3
(261 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page