Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yet another rewrite problem (?) again
#1
Sad 
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!
Reply
#2
(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?


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply




Users browsing this thread: 1 Guest(s)