Comments (6)
I tested it on my local environment and it looks good, the URL looks like
https://localhost/news/4/de/no-news-are-good-news.html
The rewrite rule:
# * http://[...]/news/<ID>/<LANGUAGE CODE>/<HEADER>.html
RewriteRule news/([0-9]+)/([a-z\-]+)/(.+)\.htm(l?)$ index.php?action=news&newsid=$1&newslang=$2 [L,QSA]
from phpmyfaq.
Yes that is what I have but I get redirected to the 404 page. The odd thing is, the 404 page doesn't show the right template either. Because it shows things that I changed like showing the original phpmyfaq logo in the header.
I made a copy of the default theme and changed it to that theme in the admin. So not sure why it's reverting back to the default theme for the 404 page as well.
All the other seo faq links work. Just the news doesn't work with your exact rewrite rule. Does it matter my lang is en?
from phpmyfaq.
You have to change the 404 as well, it's not embedded in the index.html template file.
For the 404, it's really strange. Do you see an error in your apache log files?
from phpmyfaq.
I manage to fix the issue for me. It was Options +FollowSymLinks -MultiViews -Indexes
Mine wasn't exactly as it is in your repo. It's weird how it only affected the news part.
For the 404 I don't know why it does that. And that is still an issue. Nothing in the apache logs.
from phpmyfaq.
You have to change the 404 as well, it's not embedded in the index.html template file.
I may have misunderstood your reply. The problem with the 404 page seems to be that it's not within the index.html file which is why the updates did not show as it did the rest of the site. So I think things are ok with this issue then.
from phpmyfaq.
Yes, the 404 page is not embedded in the "normal" index.html as the other templates. I think we should rename it to 404.page.html to make it more clear.
from phpmyfaq.
Related Issues (20)
- Change WYSIWYG editor component (again) HOT 3
- Catagory not available after change function show on startpage HOT 15
- All Categories are displayed when selecting 'Go to Category' from startpage HOT 16
- Attachment opening not working HOT 5
- cookie-consent HOT 9
- Manage the "Subcategories" block when there are no subcategories HOT 3
- SingleSignOn SSO HOT 2
- Fatal error with user control panel
- LDAP + 2FA: cannot save HOT 25
- 4.0: FAQ editor - Revision
- sitemap.xml.php not working HOT 2
- Installation issue HOT 7
- Conflicting configuration admin settings
- Categories won't save due to csrfToken HOT 3
- Migrate all frontend templates to Twig HOT 2
- Migrate Setup to Twig Templates and Controller
- Add Fediverse connection for phpMyFAQ
- Norwegian language missing after upgrading to 3.2.6 HOT 1
- Unable to update mail from email address HOT 1
- User Control Panel Fatel error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpmyfaq.