GetSimple Support Forum
Yet another rewrite problem (?) again - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Yet another rewrite problem (?) again (/showthread.php?tid=16872)



Yet another rewrite problem (?) again - Bolkonskij - 2022-12-14

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:

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!


RE: Yet another rewrite problem (?) again - islander - 2022-12-15

(2022-12-14, 21:42:53)Bolkonskij Wrote: Any help appreciated!

Did the domain name stay the same?
Or any change from http to https?
Or move to different sub-dir?

Are you able to get into the admin, and only public pages dont work?
If you can get into admin, you may want to look at settings to see if URL needs updating.
and if so, you may want to try the Migrate plugin which can correct links in pages.

edit: sorry, I missed the part that said you could access admin.

also, is the  "%parent%/%slug%/" light grey? If you click in that field, does it go blank?

Maybe try to flush the cache?