Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod_rewrite problem [SOLVED]
#1
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...
Reply
#2
UP please Tongue
Reply
#3
what part doesn't work, or do you get a 500 error ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
What are those rules for?
I mean, they don't seem to be for GS or a GS plugin...
Reply
#5
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.
Reply
#6
installation warns you of this so does health check.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
Yeah you right... but when i have installed xampp one year ago, I had no idea what it was mod_rewrite... Tongue
Reply




Users browsing this thread: 2 Guest(s)