It's been a while since a visited this site... so that means I'm having a problem.
I have one site wich is getting content from another server and displaying the menubar as a foldername. This done with a php script wich you can find a part of it...
- Code: Select all
f($_GET["pagetype"]==""){
$data = file_get_contents("http://www.blabla.nl/site/build/?blabla_id=".$blabla_id."&info=".$blabla_info."&build_id=".$blabla_id);
}
My htacces in the root is like this. This is a subdomain. That's why the folder is displayed in the htaccess.
and I might think that the menubar everytime is redirecting to the main folder instead of the folder asked by the php script.
In short terms.
http://www.blabla.nl/content/
is not working and displays http://www.blabla.nl
- Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]
#Rule-0
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteCond %{REQUEST_URI} !^/domain/
RewriteRule (.*) /domain/$1
#Rule-1
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteCond %{REQUEST_URI} !^/domain/
RewriteRule (.*) /domain/$1
The htacces in my subdir rewrites the url and can be found here.
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^content/.*/([0-9]+)\/([0-9]+)\/$ index.php?pagetype=3&category_id=$1&page=$2
RewriteRule ^content/.*/([0-9]+)\/([0-9]+)\/$ index.php?pagetype=2&category_id=$1&page=$2
RewriteRule ^content/([0-9]+)\/$ index.php?pagetype=2&page=$1
RewriteRule ^content/([0-9]+)\/$ index.php?pagetype=3&page=$1
RewriteRule ^content$ index.php?pagetype=2
RewriteRule ^content$ index.php?pagetype=3
RewriteRule ^content/([0-9]+)\/.*/$ index.php?pagetype=8&post_id=$1
RewriteRule ^other_content/([0-9]+)\/.*/$ index.php?pagetype=9&content_id=$1
ErrorDocument 401 /index.php
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
ErrorDocument 405 /index.php
ErrorDocument 407 /index.php
ErrorDocument 500 /index.php
Any suggestions?
Kindly regards,
Gert