Help - Search - Members - Calendar
Full Version: Apache Mod_rewrite Extension
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
swordz
Hi.

I was wondering if this extension was enabled on the vndv server. It's not a serious problem for me, but I'd like to use it if I'm able!

thanks,

swordz
Adam Kalisz
mod rewrite is enabled
RewriteEngine On
RewriteBase /
and all is working for me
swordz
Excellent

thanks,
swordz
The Prophet
QUOTE(swordz @ Aug 14 2008, 11:34 AM) *
Excellent

thanks,
swordz


Is this allowed?

CODE
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+[^/])/?$ pages.php?page=$1 [L]
swordz
QUOTE(The Prophet @ Dec 9 2008, 03:13 AM) *
CODE
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+[^/])/?$ pages.php?page=$1 [L]


Yes, that's absolutely fine - except that your regex isn't quite right - the [^/] and the /? do the same job, so all you really need is:

CODE
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)/?$ pages.php?page=$1 [L]


Yours would work - it's just I don't like redundant code!

swordz
The Prophet
QUOTE(swordz @ Dec 9 2008, 10:53 AM) *
Yes, that's absolutely fine - except that your regex isn't quite right - the [^/] and the /? do the same job, so all you really need is:

CODE
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)/?$ pages.php?page=$1 [L]


Yours would work - it's just I don't like redundant code!

swordz


tyvm!! I don't like redundant code either. I wrote an XML base web engine with full template support in 30 lines (w/o comments). Hows that for lack of redundancy?
Alex
I once wrote a functional IRC bot in one line! (actually, that's true, me and Bread both did. It was a competition with some rules for what had to have a line break - so one statement per line etc)

Seriously, we don't need to start a pissing contest here. swordz wasn't making light of your competence. tongue.gif
swordz
I still have a copy of that bot. 255 characters... SOO hard to understand. Bread and I spent 2/3 hours removing 4/5/6 characters...

swordz
The Prophet
QUOTE(swordz @ Dec 9 2008, 06:07 PM) *
I still have a copy of that bot. 255 characters... SOO hard to understand. Bread and I spent 2/3 hours removing 4/5/6 characters...

swordz

Hehe nice guys. Didn't mean to start a war or anything.

Any good guides on using mod_rewrite? I mean I pieced that together and I understand it but I couldn't do something much more complicated.
swordz
For the spec, here is probably a good pace to start. Otherwise this looks quite good.

I really do suggest getting xampp or similar before playing with mod_rewrite - it's very powerful, and very easy to make your entire site 500 - server error...

swordz
The Prophet
QUOTE(swordz @ Dec 9 2008, 07:42 PM) *
For the spec, here is probably a good pace to start. Otherwise this looks quite good.

I really do suggest getting xampp or similar before playing with mod_rewrite - it's very powerful, and very easy to make your entire site 500 - server error...

swordz


I'm doing my dev in linux, so XAMPP is not really necessary (nor would it run wink.gif ). Arch linux FTW!
ANkit Shah
Hello to everyone,
I just had developed the php zendframe work based project.when i had uploaded all my code through FTP to server,i having 500 error as internal server error.I know that this error coming through the mod_rewrite apache issue from checking out the .htacces rules ,but i don't know how to solve this error.As i had already tried all this codes which are


RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)/?$ pages.php?page=$1 [L]



So......please if anyone know solution of this type of error,then please reply me.............

My Project url was as like: http://ankitlive.99k.org/public/admin

Waiting for reply............. rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.