简体   繁体   中英

how to make a file that looks like this “https://www.facebook.com/messages/100005408564” with no .php or .txt or anything

I dont really know how to ask this question, but i just see this everywhere and i don't know how it's done. https://www.facebook.com/messages/100006335564 this id in the end, is it a file or what is it ? and how can i do something like that?

this is my question, i'll just post code so it accepts the question coz its too short. so dont care about the code

 CREATE TABLE Classes(
ClassID INT AUTO_INCREMENT,
CollegeID INT NOT NULL,
ClassName VARCHAR(100) NOT NULL,
ClassType VARCHAR(100),
PRIMARY KEY (ClassID)
 );

CREATE TABLE College(
CollegeID int NOT NULL AUTO_INCREMENT PRIMARY KEY,
UniversityName TEXT NOT NULL,
CollegeName TEXT NOT NULL,
Username varchar(30) NOT NULL,
Password varchar(30) NOT NULL,
email varchar(30) NOT NULL,
img varchar(100) NOT NULL DEFAULT 0,
timeval TIME
);

This is done in a .htaccess file on the server, using mod_rewrite . This answer should clear things up:

PHP .htaccess mod_rewrite EDIT: This one might make a little more sense: Mod_Rewrite .Htaccess

首先,您需要在apache上启用mod_rewrite,还需要将公共目录配置为allowOverride ALL而不是none,然后将.htaccess放在规则的文档公共文件夹中,以将找不到的文件或目录路由到通常为index.php的通用脚本中使用index.php读取查询字符串,并根据查询字符串的值处理或路由信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM