.Htacces does not work

Status
Not open for further replies.

gameserv15

New Member
Messages
64
Reaction score
1
Points
0
hello
my .htacces file does not work
i want to change the extension from index.php to index with this code:

Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]


 

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
Try this:
Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteRule ^index$ /index.php [NC,L]
Also, it's .htaccess not .htacces . Apache will not recognise the file if it is not named correctly.
 
Last edited:

gameserv15

New Member
Messages
64
Reaction score
1
Points
0
i mean all .php files to for example lol.php or forum.php into lol and forum only
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
i want to change the extension from index.php to index with this code:

Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]



You are saying one thing and doing another.

1. What are your links going to look like?
2. What do your files look like?

ie, links like yadda.com/foo and file foo.php ?
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Problem solved

***Thread Closed***
 
Status
Not open for further replies.
Top