• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Mod_Rewrite und Host Europe
PostPosted: Wed Jul 28, 2010 9:00 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 04, 2008 11:03 pm
Posts: 83
Hallo zusammen,

für eine Bekannte habe ich eine Webseite erstellt und möchte diese natürlich mit den Pretty URLs ausstatten. Das ganze wird bei Host-Europe gehostet. Eigentlich ist dies kein Problem einzustellen (schon XX mal gemacht). Nun stoße ich aber auf ein Problem. Andauernd kriege ich den Fehler 404 - versteh nur nicht warum.

Config:
Quote:
#What type of URL rewriting should we be using for pretty URLs?  Valid options are:
#'none', 'internal', and 'mod_rewrite'.  'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates.  For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';


#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';


.htaccess
Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /

AddType x-mapp-php5 .php
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
RewriteRule ^News/rss(.+)$ index.php?page=News/rss$1 [S=1]
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]


Die Seite liegt direkt im Hauptverzeichnis als stimmt auch die Base Angabe. Benutzt wird das Webpack M. Laut FAQ von Host-Europe klappt mod_rewrite (ohne Probleme) erst ab Webpack L. Allerdings sagt mir die test.php, dass das Modul mod_rewrite geladen ist.

Kann mir wer weiterhelfen?


Last edited by skibby on Wed Jul 28, 2010 9:40 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Mod_Rewrite und Host Europe
PostPosted: Wed Jul 28, 2010 1:05 pm 
Na da würde ich doch erstmal Deinen Provider fragen.
Denn bei den Einstellungen und der .htaccess Datei sehe ich grad keinen Fehler.


Top
  
 
 Post subject: Re: Mod_Rewrite und Host Europe
PostPosted: Wed Jul 28, 2010 2:03 pm 
Was für ein Webpaket hast du denn?
.htaccess bekommst du erst ab Webpack L, wenn ich's richtig weiß.

Schöne Grüße
Cherry


Top
  
 
 Post subject: Re: Mod_Rewrite und Host Europe
PostPosted: Wed Jul 28, 2010 2:20 pm 
Das würde den 404 Fehler erklären, da das CMS URLs wie z.B. domain/foo.html generiert.
Wenn die .htaccess Datei aber ignoriert wird (weil erst ab Packet L verfügbar) kann ja nichts umgeschrieben werden und demnach sucht der nach exakt dieser HTML Datei.
Die er natürlich nicht findet.
Ergo -> 404 Fehler.


Top
  
 
 Post subject: Re: Mod_Rewrite und Host Europe
PostPosted: Wed Jul 28, 2010 4:10 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sat Aug 25, 2007 9:55 am
Posts: 1186
Location: Berlin
schreib doch einfach den support an. haben die nicht auch nen chatsupport?

_________________
follow me on twitter
---
find great code snippets at i-do-this blog
---
powerful templates for cms made simple


Top
 Profile  
 
 Post subject: Re: Mod_Rewrite und Host Europe
PostPosted: Thu Jul 29, 2010 6:07 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 04, 2008 11:03 pm
Posts: 83
Hio,

ja werde ich gleich auch mal machen. Ich glaube Host-Europe ist da nicht die beste Wahl gewesen. Include URL machen die auch nicht mit.

Was mich eben nur wundert, ist das die URL stimmt. Sprich stellt man das System auf Mod_Rewrite um, stimmt die URL nur gibt es nen 404.


Top
 Profile  
 
 Post subject: Re: Mod_Rewrite und Host Europe
PostPosted: Thu Jul 29, 2010 10:48 am 
Wie ich schon sagte, das hat nichts mit dem Server zu tun, sondern mit dem CMS.
Du sagst dem CMS es soll pretty URLs generieren.
Nur durch fehlendes mod_rewrite kann der Server mit diesen URLs nichts anfangen.


Top
  
 
 Post subject: Re: Mod_Rewrite und Host Europe
PostPosted: Wed Aug 04, 2010 10:19 am 
Ich hab mich nur über die Rewrite-Rule für die News-RSS gewundert ... das sollte doch schon seit geraumer Zeit der CGFeedReader übernehmen - welche CMSms-Version verwendest du?


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner