TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-08-2008, 01:32 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default Is this valid mod_rewrite

Code:
RewriteRule ^([A-Za-z0-9].*?)/?$ $1.php [L]

Its for my host.. v-v
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 07-08-2008, 01:48 PM   #2 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

It's valid. What is your goal though, so we can tell you if there's any other possible ways?
-m
delayedinsanity is offline  
Reply With Quote
Old 07-08-2008, 02:03 PM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Not a goal at all actually, just double checking with everyone else to see if this is valid for my host to fix my mod_rewrite, cause I can enable it, just not write any rules or conditions.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 07-08-2008, 06:24 PM   #4 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

What do you need to fix? If you enabled mod_rewrite but you have no rules in your .htaccess file, then the host will act like it was before. It doesn't change anything by itself. Plus, when using mod_rewrite you NEED to have a goal. That's why you enabled it in the first place, to do something with it, not to just have it there...right?
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 07-09-2008, 01:29 AM   #5 (permalink)
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Have you enabled it like?

Code:
Options +FollowSymLinks All -Indexes
RewriteEngine on

#rewrite rules comes here
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 07-09-2008, 01:33 AM   #6 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Tried that, didn't work, still internal server error. My apache version is 1.3.41
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 07-09-2008, 02:09 AM   #7 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

You might not have rights to change Options in your .htaccess. Confirm with your sysadmin that 'AllowOverride Options' is set for your virtual host. Then try removing everything from your .htaccess but the following (same as Kalle said, minus any rules):

Code:
Options +FollowSymLinks
RewriteEngine On
If you have that in your .htaccess and you get an internal server error, then mod_rewrite isn't properly enabled in Apache. Your sysadmin needs to uncomment the following line and reboot the server:

Code:
#LoadModule rewrite_module modules/mod_rewrite.so
delayedinsanity is offline  
Reply With Quote
Reply



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

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:21 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design