Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect URL with fancy URL turned on
#1
Hi all,

I'm currently using the fancy URL feature to display the URL and I need to map an old URL to an existing page using fancy URL. The result is interesting, getSimple actually think the .html extension is some sort of id and report the page not found.

This is the redirect I'm currently using, what should I do to avoid this issue?

Code:
Redirect /contact.html http://sample.com/contact/

And also, if I'm using I18N plugin, should I just add ?setlang= to direct to pages in other languages?


Thanks,
Angela
Reply
#2
Redirect 301 /contact.html http://sample.com/contact/
Addons: blue business theme, Online Visitors, Notepad
Reply
#3
Thanks, I got it.
Reply
#4
angelazou Wrote:Thanks, I got it.

I have no idea why link has been embedded within code tags, but I've edited it now.
301 redirect are very simple to achieve if you do not have any conditions.
Addons: blue business theme, Online Visitors, Notepad
Reply
#5
Hello

I use Simple Page Content plugin to keep editable content in different blocks on the page. But each block is actually a page that is included e.g. in sitemap. I don't want the content of that blocks to be visible as separate pages so I wanted to redirect all of that additional pages to main pages, e.g. a have a page 'address' that contains just address that is a part of 'Contact' page and I want to redirect 'address' to 'Contact'. I use fancy URLs.
I've tried:

Redirect 301 /address http://www.site.com/Contact (that's just a sample)

but this seems not to work. What may be wrong?
Reply
#6
blazejs Wrote:But each block is actually a page that is included e.g. in sitemap. I don't want the content of that blocks to be visible as separate pages

Have you tried making those pages private? (won't be redirected, but not indexed nor visible)

blazejs Wrote:but this seems not to work. What may be wrong?

What does it do? "Page not found"...?

Is your site at the root of the domain? (RewriteBase / in .htaccess)
Reply
#7
Carlos Wrote:Have you tried making those pages private? (won't be redirected, but not indexed nor visible)

I did. But private pages are not visible when admin is logged out.

Carlos Wrote:What does it do? "Page not found"...?

Is your site at the root of the domain? (RewriteBase / in .htaccess)

Site is in the root. Redirecting had no effect at all. I'll give you real sample. There's e.g. a page:

www.silnikidomaszyn.pl/o1silniki/ that I don't want to have indexed as this is used for left column content on correct page www.silnikidomaszyn.pl/silniki-do-maszyn/ (I just want that to be editable for client)

I'd like to redirect that first page to the second one, but

Redirect 301 /o1silniki http://www.silnikidomaszyn.pl/silniki-do-maszyn/

takes no effect - I got something like this: http://www.silnikidomaszyn.pl/silniki-do...=o1silniki and it displays content of page with slug o1silniki.

I'm not programmer so it's not that clear to me.
Reply
#8
blazejs Wrote:I did. But private pages are not visible when admin is logged out.
:-? If your "block pages" are set as private, they won't be included in the sitemap, and they won't be visible by visitors. The plugin that displays their contents on non-private pages would have no problem to read those pages...

Anyway it is better if you also do the redirection you want, I think it's a good idea.

blazejs Wrote:I'd like to redirect that first page to the second one, but
Yes, that doesn't work. I don't know much about .htaccess and that... Take a look at this thread, there several redirection examples for GS, some might suit you.
http://get-simple.info/forum/topic/1552/...direction/
Reply
#9
Thank you very muchSmile That samples really helped me to solve my redirecting issueSmile
Reply




Users browsing this thread: 1 Guest(s)