Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

SEO-Friendly Custom Pages URLs

Asked Modified Viewed 3,427 times
I
i7Grendel
I
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
asked
Junior Member

FIXED

I would like to turn my "ugly" custom pages urls (like viewpage.php?page_id=10) into links like /page/my-page/. I know I need to do something with the .htaccess, but I can't figure it out myself.
Edited by i7Grendel on 29-02-2012 22:21,
0 replies

2 posts

Y
Yodix
Y
Yodix 10
Happy Hunger Games! And may the odds be ever in your favor.
  • Member, joined since
  • Contributed 62 posts on the community forums.
  • Started 20 threads in the forums
answered
Member

The following code makes the address will look like this:
page-[id]-[title].html
RewriteEngine On

# IF SUBFOLDER: RewriteBase /website/cool_page/page/

RewriteBase /

## VIEWPAGE ##
RewriteRule ^page-([0-9]+)-([a-z0-9_]+)\.html$ viewpage.php?page_id=$1 [L]
## ## ## ## ##
0 replies
I
i7Grendel
I
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Junior Member

Sorry for asking this. I found a modification by FoxFolder allowing you to add a url name to a custom page (like "example" ), which will rewrite it to something like example.html. This is easy and automated, so that's what I'm going to use. I thank you for time, even if it wasn't necessary in the end.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

Y
Y
Yodix 10
Happy Hunger Games! And may the odds be ever in your favor.
  • Member, joined since
  • Contributed 62 posts on the community forums.
  • Started 20 threads in the forums
I
I
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet