Jump to content

[SOLVED] vertual folder


pietbez

Recommended Posts

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

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"?

haha, yes, sorry. virtual :D

 

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."

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.