diff --git a/app.py b/app.py index d17be29..6d8757d 100644 --- a/app.py +++ b/app.py @@ -16,7 +16,7 @@ import shutil from datetime import datetime from threading import Lock -from flask import Flask, jsonify, render_template, send_from_directory, request +from flask import Flask, jsonify, render_template, send_from_directory, request, redirect import psutil # Try to import OpenAI (optional) @@ -708,10 +708,15 @@ def index(): # Serve index.html from root directory return send_from_directory('.', 'index.html') +@app.route('/linux-crypto-subsystem') +def linux_crypto_subsystem_page(): + """SEO-friendly Linux crypto subsystem page.""" + return render_template('linux-crypto-subsystem.html') + @app.route('/crypto') -def crypto_page(): - """SEO-friendly crypto subsystem page.""" - return render_template('crypto.html') +def crypto_page_legacy(): + """Legacy path redirect to Linux crypto subsystem page.""" + return redirect('/linux-crypto-subsystem', code=301) @app.route('/api/syscalls-realtime') def syscalls_realtime(): diff --git a/index.html b/index.html index ef2843c..20a079c 100755 --- a/index.html +++ b/index.html @@ -96,11 +96,11 @@