Jump to content

[SOLVED] htaccess- path issue


deepson2

Recommended Posts

Hello,

 

I have page games.php. using htaccess i have been using the following url

 

 

sitename/games/gamesnam

Using gameid i can see different game pages . Now on this gamesname.php,i am trying to build up add favorite games option. using ajax i want to do that.

 

I have tested my code with simple insertion page.

but here on particularly on this page. where my site url is like this

 

 

sitename/games/gamesname

with this path its showing me this error

 

The page cannot be found

The page you are looking for: /games/sliderman/addremovefav.php?t=1246876451&gameid=11240

addremovefav.php

gamepage.php

ajaxdev.js

 

 

 

 

 

ab is the main folder, where all my file are there.

This is my htaccess look like.

RewriteRule games/([-a-z|A-Z|0-9|-|.|'|,|&|_|!|:]+)/([0-9]+)$ /ab/games/$1/$2/ [R=301,L]

RewriteRule games/([-a-z|A-Z|0-9|-|.|'|,|&|_|!|:]+)/([0-9]+)/$ /ab/gamesname\.php?url=$1&start=$2

 

RewriteRule games/([-a-z|A-Z|0-9|-|.|'|,|&|_|!|:]+)$ /games/$1/ [R=301,L]

RewriteRule games/([-a-z|A-Z|0-9|-|.|'|,|&|_|!|:]+)/$ /ab/gamesname\.php?url=$1

Ab is my main folder where all these files are there

ab/gamesname.php

 

 

I want to pass value from this page to here

 

ab/addremovefav.php

 

can anyone please tell me how can i pass this value?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/165595-solved-htaccess-path-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.