pietbez Posted September 9, 2008 Share Posted September 9, 2008 Ok, this might be the complete wrong term to call this but i dont know how else to describe it. a scripter made a site for me. it has what i will refer to as "vertual folders" what i mean by that is: www.mysite.com/folder1 folder1 does not acualy exist on the server, but some php code makes it a valid url. this all works fine on the original site. now i want to move the site to a new host. on the new host, www.mysite.com works fine, but www.mysite.com/folder1 gives me a 404. i have moved over all the files and mysql can anyone please tell me the right terminology for my "vertual folder" and where i can get information about it. Link to comment https://forums.phpfreaks.com/topic/123426-solved-vertual-folder/ Share on other sites More sharing options...
revraz Posted September 9, 2008 Share Posted September 9, 2008 Look into mod rewrite Link to comment https://forums.phpfreaks.com/topic/123426-solved-vertual-folder/#findComment-637447 Share on other sites More sharing options...
lanmonkey Posted September 9, 2008 Share Posted September 9, 2008 from the files you got on from your old server, take a look for a file called ".htaccess" in the root of your home folder (AKA public_html). If a coder has used mod re-write (the most likley way hes done it) there will be a bunch of rules in this file that could be alterd. also, isn't it spelt "virtual"? Link to comment https://forums.phpfreaks.com/topic/123426-solved-vertual-folder/#findComment-637462 Share on other sites More sharing options...
pietbez Posted September 9, 2008 Author Share Posted September 9, 2008 haha, yes, sorry. virtual yes i found the .htaccess and it looks like that is the problem. RewriteEngine on RewriteRule ^member/(.+)$ index.php?mod=member&member=$1 [L,QSA] RewriteRule ^redirect/(.+)$ index.php?mod=redirect&link=$1 [L,QSA] RewriteRule ^(.+)/(.+)/$ index.php?mod=item&catname=$1&itemname=$2 [L,QSA] RewriteRule ^category-(.+)/$ index.php?mod=category&catname=$1 [L,QSA] RewriteRule ^(.+)/$ index.php?mod=$1 [L,QSA] RewriteRule ^global\.xml$ /rss/rss_global.php [L] RewriteRule ^(.+)\.xml /rss/rss_category.php?cat=$1 [L] php_value session.use_only_cookies 1 php_value session.use_trans_sid 0 thanks. however, now i have a new problem ??? if i drop the .htaccess file into public_html i cant access the site at all. i get this "The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request." Link to comment https://forums.phpfreaks.com/topic/123426-solved-vertual-folder/#findComment-637489 Share on other sites More sharing options...
revraz Posted September 9, 2008 Share Posted September 9, 2008 Ask your host what you are allowed to rewrite. Maybe they dont allow you to modify session values. Try removing the last 2 lines. Link to comment https://forums.phpfreaks.com/topic/123426-solved-vertual-folder/#findComment-637510 Share on other sites More sharing options...
pietbez Posted September 9, 2008 Author Share Posted September 9, 2008 thank you! all working Link to comment https://forums.phpfreaks.com/topic/123426-solved-vertual-folder/#findComment-637528 Share on other sites More sharing options...
lanmonkey Posted September 9, 2008 Share Posted September 9, 2008 If you removed tese two lines: php_value session.use_only_cookies 1 php_value session.use_trans_sid 0 ...you should probably talk to your host about putting them back in because these were there for security to prevent session hijacking. Link to comment https://forums.phpfreaks.com/topic/123426-solved-vertual-folder/#findComment-637568 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.