Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.