Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-11-2007, 06:46 PM Htacess issues
Experienced Talker

Posts: 37
Trades: 0
RewriteEngine On
php_flag register_globals on
RewriteRule ^admin/([a-z0-9]+)\.([a-z0-9]+)$ admin/index.php?mod=$1&sub=$2 [QSA,L]
RewriteRule ^(external|images|thumbs)/(.+)$ $1/$2 [QSA,L]
RewriteRule ^([a-z0-9]+)$ index.php?mod=$1 [QSA]
RewriteRule ^([a-z0-9]+)/([\sA-Za-z0-9_-]+)$ index.php?mod=$1&sub=$2 [QSA]
RewriteRule ^profile/([\s\.A-Za-z0-9_-]+)$ index.php?mod=profile&sub=$1 [QSA]


HI guys i need a fix and fast for some reason my site

www.playgamez.org none of the links dont work

cheers Anthony
weasel is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-11-2007, 07:50 PM Re: Htacess issues
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
fatal error -> database()
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 06-12-2007, 08:07 AM Re: Htacess issues
Ultra Talker

Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades: 0
Code:
php_flag register_globals on

RewriteEngine On
RewriteCond %{REQUEST_URI}                    !(^admin/index\.php$)
RewriteRule ^admin/([a-z0-9]+)\.([a-z0-9]+)$ admin/index.php?mod=$1&sub=$2 [L]

RewriteCond %{REQUEST_URI}                    !(^(external|images|thumbs|index\.php)$)
RewriteRule ^([a-z0-9]+)$ index.php?mod=$1 [L]
RewriteRule ^([a-z0-9]+)/([\sA-Za-z0-9_-]+)$ index.php?mod=$1&sub=$2 [L]
RewriteRule ^profile/([\s\.A-Za-z0-9_-]+)$ index.php?mod=profile&sub=$1 [L]
That should work. If you really need to use these [QSA] thingies, you can add them, but you probably won't. Hope this helps.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Orodreth is offline
Reply With Quote
View Public Profile Visit Orodreth's homepage!
 
Old 06-13-2007, 11:26 AM Re: Htacess issues
Experienced Talker

Posts: 37
Trades: 0
HI thanks but in the end got it figured out with the nice
mod_rewrite formula was pretty cool

Thanks guys Anthiony
weasel is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Htacess issues
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46960 seconds with 12 queries