Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Special chars htaccess

General discussions related to php

Moderators: macek, egami, gesf

Special chars htaccess

Postby Gold1ssimo » Sat Apr 26, 2014 3:33 am

Hi.
I have problem, I wanna make redirect from adress:
Code: Select all
http://domena.com/stat_modules/top_wp/kropp/component/search/?searchword=komary&searchphrase=all&Itemid=435

to:
Code: Select all
http://domena.com/stat_modules/top_wp/kropp/produkty/komary/cat-komary

In old adress are special chars and I think - htaccess is wrong couse this.
Some1 can help me?
Greetz.
Gold1ssimo
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Apr 26, 2014 3:30 am

Re: Special chars htaccess

Postby seandisanti » Sat Apr 26, 2014 7:41 am

are you trying to redirect, or just do friendly urls? redirect can be handled easily by just doing header("location:http://whatever.com/page.php/etc"); where you put the page to redirect to in place of the url i threw in. Friendly urls are a little different though, and require a mod_rewrite call in an htaccess file as explained here: http://stackoverflow.com/questions/8125 ... url-in-php
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: Special chars htaccess

Postby Gold1ssimo » Sun Apr 27, 2014 5:33 am

Redirect, but this is search.
I wanna make 10 redirect after:
type word "aaa" to redirect user (not to page with results, but another page),
type word "bbb" to redirect....
etc.
Gold1ssimo
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Apr 26, 2014 3:30 am


Return to PHP General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.