2022-12-14, 21:42:53
(This post was last modified: 2022-12-14, 21:59:36 by Bolkonskij.)
Scenario:
GetSimple CMS has been moved from one folder to another on the same server via FTP. It's at the final destination, the URL has changed. URL has been updated accordingly in admin/settings.
Problem:
Suddenly every page except the home page throws a 404. Example: www.url.com/contact used to work fine. Now ends up a 404 not found. Do I smell a rewrite problem?
Checked:
- Website health shows no issues (including mod_rewrite option being active)
- Fancy URL option in admin/settings is checked and active with the default %parent%/%slug%/
- Respective page exists, custom page slug is entered
- A different fancy URL setting like ?id=%slug% works fine
- .htaccess looks like this:
I tried replacing the base dir value like this:
Though that didn't help either
I found older threads about similiar problems, however, couldn't find one with a working solution. Probably me ...
Any help appreciated!
GetSimple CMS has been moved from one folder to another on the same server via FTP. It's at the final destination, the URL has changed. URL has been updated accordingly in admin/settings.
Problem:
Suddenly every page except the home page throws a 404. Example: www.url.com/contact used to work fine. Now ends up a 404 not found. Do I smell a rewrite problem?
Checked:
- Website health shows no issues (including mod_rewrite option being active)
- Fancy URL option in admin/settings is checked and active with the default %parent%/%slug%/
- Respective page exists, custom page slug is entered
- A different fancy URL setting like ?id=%slug% works fine
- .htaccess looks like this:
Quote:# handle rewrites for fancy urls
<IfModule mod_rewrite.c>
RewriteEngine on
# Usually RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
I tried replacing the base dir value like this:
Quote:RewriteBase /name-of-my-dir/
Though that didn't help either
I found older threads about similiar problems, however, couldn't find one with a working solution. Probably me ...
Any help appreciated!