Mod_rewrite question

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

dcgamers

Established Member
Impact
1
don't know where else to put this. Im using mod_rewrite to make my urls like example.com/articles/this&20is%20a%20page. I seen urls like example.com/articles/this-is-a-page. How can I make the urls like that? Im a noob when it comes to mod_rewrite.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
%20 is a space.. You just have to make the links to those with dashes..
 
0
Close
that won't work because Im using mysql for it and if you do that, it can't find the page.
 
0
Close
Use the ID so it can find the right thing.
www.example.com/articles/428-The-article-name
Like how NP does it.

Also, for a script I made before, I put 'archive_title' in the database. So that I could format the URL's how I wanted and strip out characters like spaces.
 
0
Close
well Im doing this for SEO friendly urls. I found out how to do this thanks.
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back