Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help me with .htaccess
11-15-2013, 09:55 PM (This post was last modified: 11-15-2013 10:29 PM by waptik.)
Post: #1
help me with .htaccess
Admin and webmasterz plz help me with .htaccess . I was having the trick but i lost it.
I want my php files to show sth like t.co/index.html at the frontend.but at the backend its stored with in php file. It was shared here bt in the old masterland. Plz do help me. Here is .htaccess file content:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 Options -MultiViews\par
RewriteEngine On\par
RewriteCond %\{REQUEST_FILENAME\} !-d\par
RewriteCond %\{REQUEST_FILENAME\} !-f\par
RewriteRule ^([^\\.]+)$ $1.php [NC,L]\par
DirectoryIndex index.php\par
\par
ErrorDocument 304 http://www.nudecity.tk\par
ErrorDocument 400 http://www.nudecity.ml\par
ErrorDocument 401 http://www.nudecity.tk\par
ErrorDocument 403 http://www.nudecity.ml\par
ErrorDocument 404 http://www.nudecity.tk\par
ErrorDocument 406 http://www.nudecity.ml\par
ErrorDocument 500 http://www.nudecity.tk\par
ErrorDocument 502 http://www.nudecity.ml\par
\par
RewriteEngine on\par
RewriteRule ^(.*)\\.html$ $1.php\par
RewriteCond %\{REQUEST_FILENAME\} !-f\par
RewriteRule ^([^/]+)/$ $1.php\par
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php\par
RewriteCond %\{REQUEST_FILENAME\} !-f\par
RewriteCond %\{REQUEST_FILENAME\} !-d\par
RewriteCond %\{REQUEST_URI\} !(\\.[a-zA-Z0-9]\{1,5\}|/)$\par
RewriteRule (.*)$ /$1/ [R=301,L]\par
}

My Facebook - ArrowTxT.In
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
11-16-2013, 01:44 PM
Post: #2
RE: help me with .htaccess
if you want to "change" the extension of your files so they appear to be html files you can try something like this

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.html$  $1.php [L,NC,QSA]

this will make yoursite.com/index.html -> yoursite.com/index.php
Find all posts by this user
Like Post Quote this message in a reply
11-16-2013, 04:31 PM (This post was last modified: 11-16-2013 04:41 PM by waptik.)
Post: #3
RE: help me with .htaccess
ok.let me try!

on which line should i put it? Because as you can see in here: kicads.tk , it says 500error.
So can someone rewrite a working .htaccess file from the one i posted in my first post and post it here?

My Facebook - ArrowTxT.In
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
11-16-2013, 05:09 PM
Post: #4
RE: help me with .htaccess
try at beginning of the file happy
(11-16-2013 04:31 PM)waptik Wrote:  ok.let me try!

on which line should i put it? Because as you can see in here: kicads.tk , it says 500error.
So can someone rewrite a working .htaccess file from the one i posted in my first post and post it here?
Find all posts by this user
Like Post Quote this message in a reply
11-16-2013, 05:36 PM
Post: #5
RE: help me with .htaccess
my site saying 500 error: kicads.tk .

My Facebook - ArrowTxT.In
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)