Jump to content

Terminator1995

New Members
  • Posts

    4
  • Joined

  • Last visited

Terminator1995's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I solved my problem RewriteCond %{THE_REQUEST} ^.*\.php.*$ RewriteRule ^(.*)$ ErrorDocument/404.html [L]
  2. With : ErrorDocument 404 /ErrorDocument/404.html OK - can i make it like that RewriteRule ^(.*\.php)$ /ErrorDocument/404.html [L,R=404]
  3. 1. ) Yes the name "Profil" is correct, it's the german name of profile ;-) 2. ) Yes the ID is a number. 3. ) OK i updated my htaccess, with your hints (Thanks for that)! But my question was (if you add the file extensions (.php) he shouldn't view this file!), have you an answer for that. Best regards
  4. Hi, first I'm sorry if I posting this in wrong forum - and sorry for my bad english. I want to make RewriteRules like Twitter - So that the files are displayed as Virtual folders, but if you add the file extensions (.php) he shouldn't view this file! .htaccess edit: AddDefaultCharset UTF-8 Options +FollowSymlinks Options -Indexes Options -ExecCGI <FilesMatch "^\." > deny from all </FilesMatch> RewriteEngine on RewriteBase / RewriteCond %{SERVER_PORT} !=443 RewriteRule ^(.*)$ https://www.abc.com/ [R=301,L] RewriteRule ^profil/$ profil.php?ID=$1 [NC,L] RewriteRule ^([^.]+)/([^.]+)/$ $2.php?ID=1 [NC,L] Can anyone help me?? Best regards Termi
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.