[Pro] .htaccess

I have an old site I wish to update…

it consisted of several pages, however I have consolidated it into 1 page (index.php)

With regards to a 301 redirect… I want to move users from the old page;
http://www.example.com/aboutus.php

to the new one;
http://www.example.com/

Whats the magical .htaccess line???;

redirect 301 /aboutus /???

Worm


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Whats the magical .htaccess line???;

Google probably? Found this - am not sure if it’s helpful:

Try and report back.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I wrote this article over on the Softpress KnowledgeBase a while ago that should cover what you want to do;

I think it would be nice if Freeway knew the links had changed and offered to update the .htaccess file for you but it isn’t that hard to do manually.
Regards,
Tim.
On 23 Oct 2013, at 12:45, Mr worm wrote:

Whats the magical .htaccess line???;


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you Thomas, thats a really cool site!!! Very helpful as always :slight_smile:

Tim, I read this earlier… however it does not illude as to how to redirect http://www.example.com/aboutus.php back to http://www.example.com

As I mentioned the site is now only 1 page, thus every old page needs to re-direct to the new single index page.

whem I try using Redirect 301 www.example.com/aboutus.php /www.example.com/index.php

I redirects to http://www.example.com/index (which doesnt work)???

and not…

http://www.example.com

How can I achieve this as neither seen to explain this?

Many thanks Tim

Worm


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Chris,

Give this a try:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html [L,R=301]

(Source)

That should redirect any requests to a file that no longer exists to index.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Caleb, unfortunately that didnt work???

I’m confused, I thought this would be a pretty easy process, however its proving to be quite a chore… :frowning:

I simply want all old/previous links to now redirect to 1 page:

www.example.com

thus

www.example.com/aboutus.php
www.example.com/contact.php
so on…

will redirect to:

www.example.com

Many thanks

Worm


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

add this to a .htaccess file…

Redirect 301 /myoldpage.html http://example.com/mynewpage.html

David Owen { Freeway Friendly Web hosting and Domains }

http://www.ineedwebhosting.co.uk | http://www.PrintlineAdvertising.co.uk

On 24 Oct 2013, at 09:44, “Mr worm” email@hidden wrote:

Hi Caleb, unfortunately that didnt work???

I’m confused, I thought this would be a pretty easy process, however its proving to be quite a chore… :frowning:

I simply want all old/previous links to now redirect to 1 page:

www.example.com

thus

www.example.com/aboutus.php
www.example.com/contact.php
so on…

will redirect to:

www.example.com

Many thanks

Worm


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

David, that worked at treat!!!

Thank you so much

Worm


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options