Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

htaccess/mod_rewrite problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
htaccess problem - hi all i created .htpasswd and then .htaccess in my dir i wrote this in .htaccess AuthName user and AuthType Basic <Limit GET> require user admin .... now i insert user and pass in..

htaccess problem - If I access my web page with just the ip address such as, I only get prompted once for the user id and password. If I access the page by the domain name such as, it will prompt me for the user id and

.htaccess problem - Hi all, First of all, sorry for the long story, but I hope it will make my problem clear and leaves as little questions as possible. I'm a problem with .htaccess that seems to be quite common. after spending hours..

.htaccess problem - hello, I have disabled directory browsing for all folders on my server and written a .htaccess allowing it for one folder. I would like to know what to put in a .htaccess file so that full access to all is enabled for only two IP ..

newbie htaccess problem... - I want to protect my images. The images are on a server with only a ip address and on port 8080 And the images should only be use on webpages of another website ex: on /..
Author Message
Leo Andrews

External


Since: Nov 28, 2006
Posts: 1



(Msg. 1) Posted: Tue Nov 28, 2006 8:24 pm
Post subject: htaccess/mod_rewrite problem
Archived from groups: alt>apache>configuration (more info?)

Hi,

I have the following in an .htaccess file and for some reason it's
causing an error 500. Remove the .htaccess and all is well. Does anyone
have any thoughts as to what might be causing it?

Thanks
Leo

# Enable URI rewriting
RewriteEngine on

# Postprocessing of generated files
RewriteCond %{REQUEST_URI}
!^(/process\.php|/.*\.(png|gif|jpg)|/.*\.xml|/RSS2B3|/astracker|/images|/volvo2b4|/poster|/viposter|/r2b|/r4|/RSS2B4|/codelock\.php|/img2\.php|/img3\.php|/links\.php|/links_rnd2\.php|/links_rnd2\.php|/linksh\.php|/linksv\.php).*$
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ /process.php?r=$1

 >> Stay informed about: htaccess/mod_rewrite problem 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 2) Posted: Tue Nov 28, 2006 8:24 pm
Post subject: Re: htaccess/mod_rewrite problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

phew!!

to me some of that seems odd

for instance, you say if it doesnt start with [a whole load of things
that are not process.php] then redirect to process.php. This is
recursive surely,

not *.gif -> process.php

you need to tell it to stop there using [L] after the rewriterule.

Also the expression matches only requests to files. What about things
which are not files. I am assuming that process.php should handle them
too. maybe not though.

Anyway it does seem a rather extreme solution. Sure there's nothing
more elegant?

 >> Stay informed about: htaccess/mod_rewrite problem 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 3) Posted: Tue Nov 28, 2006 10:14 pm
Post subject: Re: htaccess/mod_rewrite problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Leo Andrews" <leo.DeleteThis@invalid.syntax> schreef in bericht
news:456c9973$0$136$7b0f0fd3@reader.news.newnet.co.uk...
> I have the following in an .htaccess file and for some reason it's causing
> an error 500. Remove the .htaccess and all is well. # Enable URI rewriting
> RewriteEngine on
>
> # Postprocessing of generated files
> RewriteCond %{REQUEST_URI}
> !^(/process\.php|/.*\.(png|gif|jpg)|/.*\.xml|/RSS2B3|/astracker|/images|/volvo2b4|/poster|/viposter|/r2b|/r4|/RSS2B4|/codelock\.php|/img2\.php|/img3\.php|/links\.php|/links_rnd2\.php|/links_rnd2\.php|/linksh\.php|/linksv\.php).*$
> RewriteCond %{REQUEST_FILENAME} -f
> RewriteRule ^(.*)$ /process.php?r=$1

Most likely mod_rewrite is not enabled on your server.
Check your error_log for details.

HansH
 >> Stay informed about: htaccess/mod_rewrite problem 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]