Jump to content

[SOLVED] about apache


adv

Recommended Posts

hello sorry if i posted in a wrong section...

here`s my problem

i`ve installed apache

 

 

i`ve installed also the modules and enable mod_rewrite.so

it works if the files are in /var/www/html

i can do http://server.com/index

but if i change the DocumentRoot to another folder it doesn`t work without extension

i say the file is not found :|

any help will be apreciated

 

edit : sorry i posted several days ago in another section but no answer .. :|

Link to comment
https://forums.phpfreaks.com/topic/101242-solved-about-apache/
Share on other sites

You would have an .htaccess file in the document root with something like:

Options +FollowSymLinks
RewriteEngine on

# Change all URLs that contain letters and numbers only to TheTarget.php
RewriteRule ([0-9a-z]+)$ $1.php  [QSA,L]

Note, I haven't tested the above code, but it should work (or I'm sure someone else will correct me)

Link to comment
https://forums.phpfreaks.com/topic/101242-solved-about-apache/#findComment-518077
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.