hii, i have some dynamic urls which are indexed by google , but all my urls are static as generated by htaccess, dont know how those urls got indexed, so whenever some one visits through google , he cant get page 2 on same url,as that generates 404 error eg /mcq.php?mcq_id=149&page=1 this url is indexed by google where as it should be /computer/exam/mcqs/ms-word/questions/149/1.html i have many pages like this htaccess has following rule RewriteRule (.*)/(.*)/mcqs/(.*)/(.*)/(.*)\.html mcq.php?mcq_id=$4&page=$5 [L] dont know how to handle this
|+0 forum 1|
my url keys are coming from database , say if my url is abc.com ,i have used a rewrite rule RewriteRule (.*)/(.*)/mcqs/(.*)/(.*)/(.*)\.html mcq.php?mcq_id=$4&page=$5 in this rewrite rule , first four (.*) are coming as url keys from db, but problem is that in address bar am able to add any random text and still page is generated, and some of the keys are mixed, like say for first (.*) i have given key a1 which is to be used in combination with a2,a3 and a4 (url keys of second,third and fourth(.*)) , but now a1 is used in combination with …
|+0 forum 33|
Hi, I am using opencart and I want to rewrite a url through htaccess. I have tried to rewrite the url but it redirects me to the "page not found" page. I have tried to rewrite the url using the following pattern RewriteRule product/detail/(.*)/$ /index.php?route=pro/det&photo_id=$1 Please help. Thanks in advance.
|+0 forum 7|
Ahhhh! OK, so I've been learning PHP for about 7 years now on and off, but never have I taken the time to look into URL rewriting. Until now I've not needed it, but you can guarantee the one thing you think you wont need, you need! I have the following URL style: [url]www.sitename.com/profile.php?user=username[/url] Of which I would like rewriting to: [url]www.sitename.com/username[/url] (Preferred) OR [url]www.sitename.com/user/username[/url] I also need it to be reversible, so if someone types in [url]www.sitename.com/username[/url] it works. Any ideas? Previous attempt was setting up mod_rewrite rules in .htaccess, is this the best way? If not, how? Any …
|+0 forum 8|