Coding New Page

Detox

Member
Jul 24, 2010
365
24
I'm trying to add "-" in my url but it's redirecting me to /me
basically its suppose /staff/co-owners but it's redirecting me /me
this is my .htaccess

PHP:
RewriteEngine On

RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [NC]

RewriteRule ^(|/)$ dash.php?page=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ dash.php?url=$1
RewriteRule ^home/([a-zA-Z0-9_-]+)(|/)$ index.php?url=home&user=$1
RewriteRule ^news/([a-zA-Z0-9_-]+)(|/)$ index.php?url=news&id=$1

RewriteRule ^habbo-imaging/badges/([^/]+) /habbo-imaging/badge.php?badge=$1
RewriteRule ^habbo-imaging/head/([^/]+) /habbo-imaging/head.php?figure=$1

RewriteRule ^(community/staff)$ staff
RewriteRule ^(staff/owners)$ owners
RewriteRule ^(staff/co-owners)$ co-owners
RewriteRule ^(staff/managers)$ managers
RewriteRule ^(staff/mods)$ mods
RewriteRule ^(staff/trial)$ tmods
 

ItsNick

Member
Nov 19, 2013
96
15
You can't have dashes in that type of rule. Like Jaycustom said, make it coowners. Btw, sometimes you don't always get it your way. Sucks doesn't it ;P
 

Detox

Member
Jul 24, 2010
365
24
You can't have dashes in that type of rule. Like Jaycustom said, make it coowners. Btw, sometimes you don't always get it your way. Sucks doesn't it ;P
Actually I already got it fixed, you can add hyphen in a url! Derp! sucks doesn't

It's called finding the right Rewrite coding to get the hyphen to work.
 

Users who are viewing this thread

Top