Keep pages accessible without index.php?

General questions about CMSimple
Post Reply
Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

Keep pages accessible without index.php?

Post by Nicky » Mon Mar 09, 2020 9:27 am

Is it possible to keep cmsimple pages online when index.php is gone (maybe renaming to something else)?

Client wants to switch to wordpress now, but in that case the good Google results of the +8yrs old cmsimple site will be lost.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Keep pages accessible without index.php?

Post by frase » Mon Mar 09, 2020 9:41 am

Nicky wrote:
Mon Mar 09, 2020 9:27 am
Is it possible to keep cmsimple pages online when index.php is gone (maybe renaming to something else)?
XH doesn't care what the start page is called. "start.php" works just as well.
The only problem is, if the index.php is linked somewhere in the template or in the content.
Nicky wrote:
Mon Mar 09, 2020 9:27 am
Client wants to switch to wordpress now, but in that case the good Google results of the +8yrs old cmsimple site will be lost.
But the measure above will not help you. The Wordpress pages will have different addresses in any case - and thus they are "new" pages and content for the search engines in any case.
The only possibility:
Use .htaccess to redirect all old page addresses to the new ones (301).

Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

Re: Keep pages accessible without index.php?

Post by Nicky » Fri Mar 13, 2020 3:44 pm

tested as follows:

index.php renamed to start.php
changed every 'index.php' to 'start.php' in the software, content, templates

This works, to a certain extent..:

http://walhalles.be/2019XH/start.php -> is ok
http://walhalles.be/2019XH -> is no go...:
"Forbidden
You don't have permission to access /2019XH/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."


So, all the pages are accessible if 'start.php' is added to the url
http://walhalles.be/2019XH/start.php?Testpage this works
http://walhalles.be/2019XH/?Testpage nope

This means that all 'old' url's, that google has indexed will no longer work as soon as a new Wordpress site goes online (that one will of course need an index.php).

Where are the good old 'www.domain.com/welcome.html' pages.. In that case there would be no problem at all :roll:

manu
Posts: 1086
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: Keep pages accessible without index.php?

Post by manu » Fri Mar 13, 2020 4:10 pm

No filename means index.php according to your server settings. But index.php belongs to your wp installation. Do a rewrite in your .htaccess for all the old addresses.

Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

Re: Keep pages accessible without index.php?

Post by Nicky » Fri Mar 13, 2020 4:16 pm

Sounds good, but I have no idea on how to do that... :shock:

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Keep pages accessible without index.php?

Post by frase » Fri Mar 13, 2020 4:28 pm

It is exactly as manu wrote and as I wrote above.
There is no point in leaving the old CMS in place. If the content is still the same, duplicate content would be created and both sites (new and old) would be downgraded.
Redirect all old addresses with .htaccess.
So for example:
www.walhalles.be/2019XH/start.php?Testpage
will become
www.walhalles.be/Testpage (status code 301).

Search (Google) for "RewriteRule ".
We will not give you a universal guide how to switch from CMSimple_XH to Wordpress ;-)

Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

Re: Keep pages accessible without index.php?

Post by Nicky » Fri Mar 13, 2020 4:47 pm

Of course, I understand.
Thanks for the info, much appreciated.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Keep pages accessible without index.php?

Post by frase » Fri Mar 13, 2020 5:02 pm

frase wrote:
Fri Mar 13, 2020 4:28 pm
So for example:
www.walhalles.be/2019XH/start.php?Testpage
will become
www.walhalles.be/Testpage (status code 301).
Sorry - a mistake has crept in here.
The old address must of course be exactly the address that Google has already indexed.
Example:
www.walhalles.be/?Testpage
will become
www.walhalles.be/Testpage (status code 301)
But this only works if the new pages really already exist.

meltemi
Posts: 177
Joined: Sat Feb 22, 2014 10:11 pm
Location: Franken (Deutschland)
Contact:

Re: Keep pages accessible without index.php?

Post by meltemi » Tue Mar 17, 2020 7:55 pm

Hallo,
Nicky wrote:Sounds good, but I have no idea on how to do that...
In Jörgs Forum somebody had a similar question, but of course in German:
301 Weiterleitung mit Parametern

frase wrote:Sorry - a mistake has crept in here ...
The old adress has to answer with status code 301, the new one with status code 200.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Keep pages accessible without index.php?

Post by frase » Wed Mar 18, 2020 6:50 am

meltemi wrote:
Tue Mar 17, 2020 7:55 pm
The old adress has to answer with status code 301, the new one with status code 200.
Thanks.

Post Reply