Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Simple .htaccess request

Status
Not open for further replies.
You'll need modrewrite

RewriteEngine On
RewriteRule ^(.+)$ index.php

Something like that should work. TBH, I've not looked into it, and i've just made that up from my head. It will work, but it might not be the most efficient way of doing it...

Jee
Available for hire too ;)
 
You'll need modrewrite

RewriteEngine On
RewriteRule ^(.+)$ index.php

Something like that should work. TBH, I've not looked into it, and i've just made that up from my head. It will work, but it might not be the most efficient way of doing it...

Jee
Available for hire too ;)

Thanks JW - whilst that forwarded it did not 'pick up' the CSS file, so I got basic HTML ? Any ideas?
 
Try this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php

Basically, it makes sure the request isn't a file or a valid directory (i.e. so you can browse a directory listing etc ;) )

Let me know if that works :
 
Status
Not open for further replies.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom