Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 724 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

.htaccess help

Thread title: .htaccess help
Closed Thread    
    Thread tools Search this thread Display Modes  
12-28-2006, 05:19 PM
#1
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old  .htaccess help

Okay, well I've given up, Google has let me down.. I'm creating a .htaccess mod_rewrite for my site, and it doesn't seem to be working at all. Whenever I try to access the folder or any subfolder in the directory I placed it in, it isn't working.

I have a local setup, so if you guys think it has to do with my XAMPP installation and my httd.conf file, just let me know.

Code:
RewriteEngine on
RewriteBase /
RewriteRule ^view\/category\/([0-9]+)\/$ view.php?type=category&id=$1 [R=301,L]
I think my syntax is correct, and as far as I know, that's the only reason why I would be getting a 500 error. Any ideas?

12-28-2006, 09:47 PM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

As far as I know, there's no need to escape the forward slashes in the RewriteRule.

12-28-2006, 11:57 PM
#3
.SammiGe is offline .SammiGe
.SammiGe's Avatar
Status: Member
Join date: Nov 2005
Location: Other side Of your Screen!
Expertise:
Software:
 
Posts: 261
iTrader: 0 / 0%
 

.SammiGe is on a distinguished road

Send a message via MSN to .SammiGe

  Old


RewriteEngine on
RewriteBase /
RewriteRule ^view/category/([0-9]+)/$ view.php?type=category&id=$1 [R=301,L]
I would probably try that as Salathe correctly said you dont need to escape the slashes.

12-29-2006, 07:07 AM
#4
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

And, is there any point in using: RewriteBase / ?

12-29-2006, 07:26 AM
#5
Adam S. is offline Adam S.
Adam S.'s Avatar
Status: Senior Member
Join date: Aug 2006
Location: New Brunswick, Canada
Expertise: Coding / programming
Software: NotePad
 
Posts: 824
iTrader: 9 / 100%
 

Adam S. is on a distinguished road

  Old

Some people use: RewriteBase / - Garrett, but it's not needed because it all works the same.

Not sure if that was a question really.

I can't personally suggest anything, looks like its covered and that should work.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed