URL Rewriting + htaccess

Problems with the Windows version of XAMPP, questions, comments, and anything related.

URL Rewriting + htaccess

Postby bushi893 » 26. September 2010 16:26

Hi there,

I have been fighting some several days on this feature and it still does not do anything...

httpd.conf file

<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>

<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

LoadModule rewrite_module modules/mod_rewrite.so


in php.ini

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


in htaccess file (C:\xampp\phpMyAdmin\libraries & C:\xampp\htdocs\xampp\sqlite)

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?video_id=$1&video=$2 [L]


I also copied the htaccess file in other directories like php, apache/conf, htdocs, ... but changed nothing

Anyone has an idea ?

Thanks in advance
bushi893
 
Posts: 2
Joined: 26. September 2010 16:14

Re: URL Rewriting + htaccess

Postby bushi893 » 26. September 2010 17:07

I broke my htaccess file in order to know which one it s using ...
so it s using the htdocs/.htaccess file but url rewriting is still not working
bushi893
 
Posts: 2
Joined: 26. September 2010 16:14

Re: URL Rewriting + htaccess

Postby JonB » 27. September 2010 18:13

Here's a good tutorial

http://www.askapache.com/htaccess/htacc ... mple-files

(its quite unclear exactly what you wish to accomplish)
- with .htaccess there are many ways to almost every goal, so explaining where you want to go is often more useful than saying where you have been.

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 53 guests