Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 02:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Mod Rewrite Problem

Discussion on Mod Rewrite Problem within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
lnqlorlouz's Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 405
Received Thanks: 84
Question Mod Rewrite Problem

Hallo Elitepvpler!

Und zwar habe ich ein Problem. Ich habe einen Signaturen Generator. Die Links spuckt er mir so aus:

Mit meiner .htaccess sollte es dann aber so gehen:
HTML Code:
http://134.255.216.192/1/2.png
Hier meine .htaccess:
PHP Code:
RewriteEngine OnRewriteRule ^([^/]*)/([^/]*)\.png$ /signature.php?id=$1&signature=$[L
Gemacht mit:

Das komische ist, mit genau den selben Codes geht es auf meinem Webspace. Aber auf meinem Root-Server nicht. Laut Putty ist modrewrite aktiviert und laut php.info auch.
Woran könnte das nun liegen, dass es auf einmal nicht mehr funktioniert? Ich verzweifel gleich noch.
lnqlorlouz is offline  
Old 09/09/2013, 09:02   #2
 
elite*gold: 0
Join Date: Apr 2005
Posts: 323
Received Thanks: 114
Auf deinem Server sollte im Verzeichnis /etc/apache2/sites-enabled/ eine Datei mit dem Namen 000-default liegen.

Diese Datei wird in etwa so aussehen:

HTML Code:
NameVirtualHost *
<VirtualHost *>
	ServerAdmin webmaster@localhost
	
	DocumentRoot /var/www/
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
		# This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog /var/log/apache2/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/access.log combined
	ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>
Ändere innerhalb des Directory nodes den Wert von AllowOverride None auf AllowOverride All. Danach sollte deine .htaccess greifen.
MrPuschel is offline  
Thanks
1 User
Old 09/09/2013, 15:32   #3
 
lnqlorlouz's Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 405
Received Thanks: 84
Danke, nur leider immer noch erfolglos!
Hier auf meinem Webspaceserver geht es:
Aber auf meinem Rootserver leider nicht:

Edit: Ach geil, vielen dank! Nach
PHP Code:
 /etc/init.d/apache2 restart 
ging es!
lnqlorlouz is offline  
Old 09/09/2013, 17:30   #4
 
elite*gold: 0
Join Date: Apr 2005
Posts: 323
Received Thanks: 114
Die config neu einzulesen ist generell eine gute Idee
Hatte es vergessen dazuzuschreiben.
MrPuschel is offline  
Reply


Similar Threads Similar Threads
[HELP] Mod rewrite on CMS by Hen!
04/04/2014 - Metin2 Private Server - 2 Replies
Hi! Whether it is possible to shorten links to such a form /register from index.php?s=register in CMS by Henn! ? Oh, I forgot, how can I insert recaptcha(from google) to register or any other site? Thanks!
Rewrite Engine Frage
05/02/2013 - Web Development - 1 Replies
Hallo, ich hab ein Problem mit der RewriteEngine, wenn ich es so in die .htaccess schreibe, klappt die weiterleitung ohne probleme: RewriteEngine On RewriteBase / RewriteRule ^(.*)/(.*)$ /index.php?site=$1&sub=$2 RewriteRule ^(Mannschaften)$ /index.php?site=$1 RewriteRule ^$ /index.php?site=Home
htaccess URL Rewrite
04/17/2013 - Web Development - 4 Replies
Hallo, Kenne mich mit htacess URL Rewrite nicht wirklich aus, daher Frage ich hier nach. Also folgendes: Punkt 1) Wenn eine Person die Datei z.B /install/install.php aufruft wie sieht der htaccess Code dafür aus das er nur /install/ sieht? Punkt 2) Wenn jemand die URL username.game.domain.tld aufruft wie ist es Möglich das diese dann auf /profile/username.php weiterleitet?
Rewrite exp,yangs,prices
08/22/2011 - Metin2 - 0 Replies
Hello i do new privat s. but i need rewrite exp,yangs,prices but i dont know how. Pls helppp me thanks: Mad:
Old SREmu ReWrite - Working
01/19/2009 - SRO Hacks, Bots, Cheats & Exploits - 116 Replies
Step 1 - Install Visual Basic 6 Step 2 - Go to http://svn.darkinc.net/srvb/ and download all the files to your computer username is user and theres no password. or just download this one (Rev 45) but it might be updated because cls is constantly re coding it all. RapidShare: 1-Click Webhosting Step 3 - Locate to C:\Windows\System32\drivers\etc and add the following lines to your hosts file. - 127.0.0.1 gwgt1.joymax.com - 127.0.0.1 gwgt2.joymax.com Step 4 - Download the cracked...



All times are GMT +2. The time now is 02:40.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.