• 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  [ 2 posts ] 
Author Message
 Post subject: Ein kleines Problem mit "Redirect" und Unterordener.
PostPosted: Mon Feb 06, 2012 3:17 pm 
Offline
New Member

Joined: Mon Feb 06, 2012 12:56 pm
Posts: 1
Hallo,

ich bin dabei eine alte Webseite auf CMSMS zu portieren.

Hier hab ich ein Problem mit dem redirect der alten URL's.

Dazu: Die alte Seite (Joomla) war auf dem Server in einem Pfad http://www.domain.de/cms/ die neue auf http://www.domain.de. Die alten URL's hab ich über eine .htaccess im Ordner /cms (ist sonst leer) und je Seiten einen Redirect permanent gelinkt.

Also so:
Redirect permanent /cms/seitealt.html http://www.domain.de/seiteneu.htm

geht hier wunderbar.. Sind auch nur ein paar Seiten die so gelinkt werden.

Leider gab es auf der alten Seite auch einen kleinen Blog (Wordpress) war in einem Ordner http://www.domain.de/blog/ installiert und hat keine .htm(l) Endungen. Die Links sehen also so aus: "www.domain.de/blog/kategorie/blogeintrag/"

Wenn ich jetzt das selbe Spiel über eine .htaccess Datei in meinem Verzeichnis /blog/ versuche kommen dabei die dollsten Dinger raus.

Auf der neuen Seite ist CGBlog (1.8.2) installiert und soll genutzt werden.

Ich hab schon alles "mir" mögliche versucht. Besonders überrascht war ich, als ich die .htaccess in /blog/ gelöscht und in der htaccess im Stammverzeichnis die "RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]" auskommenitiert hatte und aus einem http://www.domain.de/alterblog/ ein http://www.domain.de/neuerblog.htmalterblog/ wurde.

Als wenn dort noch was anderes eingreifen (CGBlog ) würde????

Hat da jemand eine Idee wie ich das lösen kann?

Noch zur Info: die htaccess im Stammverzeichnis ist standard:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]


Vielen Dank!


Top
 Profile  
 
 Post subject: Re: Ein kleines Problem mit "Redirect" und Unterordener.
PostPosted: Fri Feb 17, 2012 12:49 pm 
Offline
New Member

Joined: Fri Feb 17, 2012 12:37 pm
Posts: 1
Etwas wie die folgenden?

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^blog/([0-9]+)-([a-z]+) http://example.com/blog/index.php?archive=$1-$2 [NC]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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:  
A2 Hosting