• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Trying to change url on website

Jfrye

Mapper, trying to learn scripting
Joined
Jan 8, 2009
Messages
366
Solutions
5
Reaction score
86
Location
Mexico Missouri
Last edited:
Edit : I searched google for over an hour before posting this. After posting, I searched one more link, and found the answer I was looking for. I now have removed .php extensions from my weblinks. But I would still like to know how to add subtopic pages.


This is what I used in the .htaccess file.
Code:
Options +FollowSymLinks
RewriteEngineOn

# Unless directory, remove trailing slash
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule^([^/]+)/$ http://example.com/folder/$1 [R=301,L]

# Redirect external .php requests to extensionless url
RewriteCond%{THE_REQUEST}^(.+)\.php([#?][^\ ]*)?\ HTTP/
RewriteRule^(.+)\.php$ http://example.com/folder/$1 [R=301,L]

# Resolve .php file for extensionless php urls
RewriteRule^([^/.]+)$ $1.php [L]

So if anyone would be willing to take some time to explain how to make this "/community/?subtopic=houses" show up in my weblinks, that would be awesome.
 
Back
Top