Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess not working in root , but works in subdirs

Status
Not open for further replies.

shantec

Technical User
Oct 20, 2002
29
TR
Hello,
i havent been an older member of Tektips since 2001, but when i need help, its great to know Tek tips is here.

i had a strange problem with the htaccess file.
----
i can only see the first page, the script dont let me to other pages. when i click the link, the URL CHANGES to correct destination, but the page stays the same.

IT WORKS perfect when the SCRIPT is running in Subdirectory, bu when i place the script in the root Folder ,i cannot retrieve thr URLs.
------
When the script is in the subdir, i just change the RewriteBase / to /forums/

it works great in the subdir.
---------------
this my htaccess in the root folder.

RewriteEngine on

RewriteBase /


RewriteRule ^(css|js|imajlar|sample_photo|avatar|ajax||rss|backgrounds|bglib|adminlogin|db_back) - [L]
RewriteRule ^(logout.php|captcha.php|delete.php) - [L]

#RewriteRule ^.*$ index.php

RewriteRule ^[^/].*$ index.php

-----------
THE ERROR LOGS.
mod_rewrite.c(1788): [client 66.249.72.127] mod_rewrite's internal redirect status: 0/10.
i have this debug output in the error logs.
------------
i have this also WHEN THE SCRIPT ?S RUNNING ?N THE SUBDIR.
--------
Any help will be much appreciated.

thanks
shawn
 
Not sure, but maybe the httpd.conf file does not allow the same overrides in the document root that it does in the sub.

Just a thought.

- flub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top