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

.htaccess question

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
htaccess question... - Hi, How do I use the htaccess file on my server to allow access from just one (my) IP, but deny access to all others? I can allow everyone EXCEPT me, but am having trouble doing it the other way. Thanks!

htaccess-question - Hi, How do I set htaccess to restrict access to a folder per user, I can get access but the next thing is to let certain users in. I can't find how I can let them log on as a user... Toon.

.htaccess question - Hi I want to make all pages in a certain directory charset so I wrote this However, I get a 500, and the error log says: [Sat Mar 27

.htaccess question - Hi all, I'd like to know the syntax of a .htaccess file wich secure his folder but not the (only one free, others secured). Exemple : /forum/ // Secured by .htaccess /lib/ // Secured by .htaccess /temp/ // Secured..

htaccess question - Hi I am writing a page but need it so that links look like the variable is not actually a folder but a variable. I have seen it before but can't fnd it at the moment where script can be put into the htaccess file so..
Next:  Apache: newbie questions  
Author Message
MS

External


Since: Aug 14, 2005
Posts: 1



(Msg. 1) Posted: Sat Aug 13, 2005 10:55 pm
Post subject: .htaccess question
Archived from groups: alt>apache>configuration (more info?)

Hi

Not a regular here but have a .htaccess question.

I have two sites each running duplicate PHP pages and the .htaccess pages
are as follows

Site one...

---------
AddType application/rss+xml .rss
RewriteEngine on
# Change 'folder' to your base directory name
RewriteBase /
RewriteRule ^bmc-(.*)-(.*).html$ ?p=$1&id=$2
RewriteRule ^bmc-(.*)-(.*).jpg$ ?p=$1&id=$2.jpg
RewriteRule ^bmc-(.*).html$ ?p=$1
---------

and site 2

---------
AddType application/rss+xml .rss
RewriteEngine on
# Change 'folder' to your base directory name
RewriteBase /demo/
RewriteRule ^mcwd-(.*)-(.*).html$ ?p=$1&id=$2
RewriteRule ^mcwd-(.*)-(.*).jpg$ ?p=$1&id=$2.jpg
RewriteRule ^mcwd-(.*).html$ ?p=$1
---------

Site 2 .htaccess page works fine

Site 1 .htaccess page used to work on a previous server but since moving it
to the same server as site 2 it fails to recognise the rewrite's.

the only difference is site 2 is setup with a sub dir and not the root dir
as site 1 is.

mcwd and bmc correctly named for the respective sites.

is RewriteBase / correct?
it has only been about 12 hours since the DNS's were set, but when i look at
the pages its pulling the info from the new DNS. Could the DNS's not being
resolved cause this problem, meaning it would work after 24-48 hours once
the DNS change has taken effect.

Any help would be gratefully received.
Alex

 >> Stay informed about: .htaccess question 
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 ]