GetSimple Support Forum
mod_rewrite problem [SOLVED] - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: mod_rewrite problem [SOLVED] (/showthread.php?tid=5581)



mod_rewrite problem [SOLVED] - lakaroth - 2014-01-31

Hello there, i try to use "fancy url", i have modify the file htaccess like this:

Code:
RewriteEngine On
RewriteRule sitemap\.xml sitemap.php?
RewriteRule rss\.xml rss.php?
RewriteRule ^([^/]*)/index\.html$ /index.php?&category=$1 [L]
RewriteRule categorie/index\.htm$ /index.php?&categorylist=true [L]
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?&url=$2&sys_category=$1 [L]
RewriteRule ^([^/]*)/([^/]*)\.htm$ /index.php?&blog=$2 [L]
ErrorDocument 404 /notfound.php

But doesn't work...


RE: mod_rewrite problem - lakaroth - 2014-02-14

UP please Tongue


RE: mod_rewrite problem - shawn_a - 2014-02-15

what part doesn't work, or do you get a 500 error ?


RE: mod_rewrite problem - Carlos - 2014-02-15

What are those rules for?
I mean, they don't seem to be for GS or a GS plugin...


RE: mod_rewrite problem [SOLVED] - lakaroth - 2014-02-15

I would not look for one that post a topic to every problem, but every time I write then later I find the solution, often alone is a kind of lucky charm? Smile
Thank you for your contribution, I explain what the nature of my problem and how i solved it...
Could be useful to other users.

i use Xampp as local server, for some reason in my default installation the rewrite module was off.
To turn it on do this:


Open apache’s configuration file using your favorite text editor.
The configuration file generally locates at:{apache_dir}/conf/httpd.conf
If you are using XAMPP or WAMP package then you will find the file at:{xampp_dir}/apache/conf/httpd.conf
{wamp_dir}/apache/conf/httpd.conf
Search for the following string:
Code:
#LoadModule rewrite_module modules/mod_rewrite.so
and uncomment it (remove the ‘#’ sign).
Now search for another string
Code:
AllowOverride None
and replace it by
Code:
AllowOverride All
Finally save the changes, close your text editor and restart your apache server.


RE: mod_rewrite problem [SOLVED] - shawn_a - 2014-02-16

installation warns you of this so does health check.


RE: mod_rewrite problem [SOLVED] - lakaroth - 2014-02-16

Yeah you right... but when i have installed xampp one year ago, I had no idea what it was mod_rewrite... Tongue