Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Is there a .htaccess file on this server that I can edit to redirect old URL's?
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
- :
- Is there a .htaccess file on this server that I ca...
Is there a .htaccess file on this server that I can edit to redirect old URL's?
18-01-2009 3:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm having problems with old URL's lead to 404 error pages and have been advised that one solution is to redirect the old URL's to the new pages by editing the .htaccess file and using the command: Redirect 301 /page2/page2.html http://www.typarke.co.uk/camping-holidays/camping-in-tents.html (real example of what I need to achieve).
I have had a scout around for .htaccess in the Plesk control panel but cannot find one. Can anyone please help?
I have had a scout around for .htaccess in the Plesk control panel but cannot find one. Can anyone please help?
Message 1 of 9
(1,515 Views)
8 REPLIES 8
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
18-01-2009 8:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
you just create one in your httpdocs directory and add what you need.
they can be a bit tricky to get right but if you google for what you want to do you should be able to find some examples as it's a pretty common thing to do.
Hope that helps.
they can be a bit tricky to get right but if you google for what you want to do you should be able to find some examples as it's a pretty common thing to do.
Hope that helps.
Message 2 of 9
(518 Views)
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
19-01-2009 9:26 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks very much for your reply. One other thing, does it matter what I call the .htaccess file? Can I call it something like 'redirect.htaccess'? Thanks for your help.
Message 3 of 9
(518 Views)
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
19-01-2009 9:42 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote does it matter what I call the .htaccess file?
Yes it does, it must be called .htaccess and remember that you need to create it using a text editor such as Wordpad, that will not create spurious formatting characters and the like!
Message 4 of 9
(518 Views)
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
19-01-2009 10:01 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
you have to call it .htaccess
Message 5 of 9
(518 Views)
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
19-01-2009 11:14 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
But do I need to add a prefix to .htaccess? I only ask because when I save '.htaccess' on Mac OS the OS hides the file because '.' is reserved for system files. I can view them if I use terminal to show hidden system files and upload it that way I suppose.
Message 6 of 9
(518 Views)
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
19-01-2009 11:29 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Nothing else needed.
That is correct, it is a system file and is hidden.
When you have copied it across to the server double-check that the file name is still .htaccess.
That is correct, it is a system file and is hidden.
When you have copied it across to the server double-check that the file name is still .htaccess.
Message 7 of 9
(518 Views)
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
19-01-2009 11:36 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I tend to save it on the Mac as my.htaccess, or whatever, and then remove the "my" having uploaded it. Easier for editing.
Gabe
Gabe
Message 8 of 9
(518 Views)
Re: Is there a .htaccess file on this server that I can edit to redirect old URL's?
19-01-2009 1:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Top tip Gabe - and thanks very much to all that have helped me with this one.
Message 9 of 9
(518 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
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Is there a .htaccess file on this server that I ca...